From 35df7e7cdb145596f919006ddacfb3d59011f7a9 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 10 Nov 2023 10:54:42 +0000 Subject: [PATCH] fix: Fixed kanban duplicate issue --- packages/nc-gui/components/dlg/ViewCreate.vue | 2 +- .../components/smartsheet/toolbar/OpenedViewAction.vue | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/nc-gui/components/dlg/ViewCreate.vue b/packages/nc-gui/components/dlg/ViewCreate.vue index 3535096681..e1a7cfaa13 100644 --- a/packages/nc-gui/components/dlg/ViewCreate.vue +++ b/packages/nc-gui/components/dlg/ViewCreate.vue @@ -308,7 +308,7 @@ onMounted(async () => { { /** Duplicate a view */ // todo: This is not really a duplication, maybe we need to implement a true duplication? function onDuplicate() { + isDropdownOpen.value = false const isOpen = ref(true) const { close } = useDialog(resolveComponent('DlgViewCreate'), { @@ -85,6 +86,7 @@ function onDuplicate() { 'type': activeView.value!.type as ViewTypes, 'tableId': activeTable.value!.id, 'selectedViewId': activeView.value!.id, + 'groupingFieldColumnId': activeView.value!.view!.fk_grp_col_id, 'views': views, 'onUpdate:modelValue': closeDialog, 'onCreated': async (view: ViewType) => { @@ -115,7 +117,7 @@ function onDuplicate() { } } -watch(isOpen, () => { +watch(isDropdownOpen, () => { setTimeout(() => { isViewIdCopied.value = false }, 250) @@ -123,7 +125,7 @@ watch(isOpen, () => {