diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue index d5aaacb600..f8c5e44bc6 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue @@ -137,6 +137,10 @@ onMounted(() => menuRef && initSortable(menuRef.$el)) /** Navigate to view by changing url param */ function changeView(view: { id: string; alias?: string; title?: string; type: ViewTypes }) { router.push({ params: { viewTitle: view.title || '' } }) + if (view.type === 1 && selected.value[0] === view.id) { + // reload the page if the same form view is clicked + router.go(0) + } } /** Rename a view */