From 7e666b15688fda9671225a1aaadc6159c9bbbbf3 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Sat, 9 Mar 2024 05:59:29 +0000 Subject: [PATCH] fix(nc-gui): incorrect route query params issue --- packages/nc-gui/composables/useTableNew.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/nc-gui/composables/useTableNew.ts b/packages/nc-gui/composables/useTableNew.ts index ef35db3aed..b20494e43b 100644 --- a/packages/nc-gui/composables/useTableNew.ts +++ b/packages/nc-gui/composables/useTableNew.ts @@ -86,10 +86,7 @@ export function useTableNew(param: { onTableCreate?: (tableMeta: TableType) => v const navigateToTable = async () => { if (openedViewsTab.value === 'view') { - await navigateTo({ - path: `/${workspaceIdOrType}/${baseIdOrBaseId}/${table?.id}`, - query: route.value.query, - }) + await navigateTo(`/${workspaceIdOrType}/${baseIdOrBaseId}/${table?.id}`) } table.isViewsLoading = true @@ -102,10 +99,7 @@ export function useTableNew(param: { onTableCreate?: (tableMeta: TableType) => v // find the default view and navigate to it, if not found navigate to the first one const defaultView = views.find((v) => v.is_default) || views[0] - await navigateTo({ - path: `/${workspaceIdOrType}/${baseIdOrBaseId}/${table?.id}/${defaultView.id}/${openedViewsTab.value}`, - query: route.value.query, - }) + await navigateTo(`/${workspaceIdOrType}/${baseIdOrBaseId}/${table?.id}/${defaultView.id}/${openedViewsTab.value}`) } } catch (e) { console.error(e)