Browse Source

fix: include missing view id in hard-reload

pull/6466/head
Pranav C 1 year ago
parent
commit
4ab5cbd9b9
  1. 10
      packages/nc-gui/store/views.ts

10
packages/nc-gui/store/views.ts

@ -164,8 +164,14 @@ 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 } })
})
}
}

Loading…
Cancel
Save