From 7ebfd7c80cb97a43617b4539d3946f93a1d8b949 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 30 Sep 2022 14:52:51 +0530 Subject: [PATCH] fix(gui): set proper active view value based on viewTitle Signed-off-by: Pranav C --- packages/nc-gui/components/smartsheet/sidebar/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nc-gui/components/smartsheet/sidebar/index.vue b/packages/nc-gui/components/smartsheet/sidebar/index.vue index e0f8d476bb..6a199014e0 100644 --- a/packages/nc-gui/components/smartsheet/sidebar/index.vue +++ b/packages/nc-gui/components/smartsheet/sidebar/index.vue @@ -72,6 +72,10 @@ watch( }) } } + } else { + if (nextViews?.length && activeView.value !== nextViews[0]) { + activeView.value = nextViews[0] + } } /** if active view is not found, set it to first view */ if (!activeView.value && nextViews.length) {