From 9f002b2a5349a978304d5821f284588b0c4e2b69 Mon Sep 17 00:00:00 2001 From: mertmit Date: Tue, 25 Apr 2023 23:32:59 +0300 Subject: [PATCH] fix: onStatus for duplicate project Signed-off-by: mertmit --- packages/nc-gui/pages/index/index/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/pages/index/index/index.vue b/packages/nc-gui/pages/index/index/index.vue index c00946c751..24f5a666da 100644 --- a/packages/nc-gui/pages/index/index/index.vue +++ b/packages/nc-gui/pages/index/index/index.vue @@ -95,10 +95,10 @@ const duplicateProject = (project: ProjectType) => { await loadProjects() - $jobs.subscribe({ name: jobData.name, id: jobData.id }, null, async (data: { status: string }) => { - if (data.status === 'completed') { + $jobs.subscribe({ name: jobData.name, id: jobData.id }, null, async (status: string) => { + if (status === 'completed') { await loadProjects() - } else if (data.status === 'failed') { + } else if (status === 'failed') { message.error('Failed to duplicate project') await loadProjects() }