From 4ab5cbd9b9de59b389f9c0c7394f4378514155c8 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 25 Sep 2023 05:54:19 +0000 Subject: [PATCH] fix: include missing view id in hard-reload --- packages/nc-gui/store/views.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/store/views.ts b/packages/nc-gui/store/views.ts index 104c386dcf..a56a437377 100644 --- a/packages/nc-gui/store/views.ts +++ b/packages/nc-gui/store/views.ts @@ -164,9 +164,15 @@ export const useViewsStore = defineStore('viewsStore', () => { } if (hardReload) { - await router.replace({ name: routeName, query: { reload: 'true' }, params: { viewId: tableId, projectId } }).then(() => { - router.replace({ name: routeName, query: {}, params: { viewId: tableId, projectId } }) - }) + await router + .replace({ + name: routeName, + query: { reload: 'true' }, + params: { viewId: tableId, projectId, viewTitle: view.id || '' }, + }) + .then(() => { + router.replace({ name: routeName, query: {}, params: { viewId: tableId, viewTitle: view.id || '', projectId } }) + }) } }