Browse Source

fix(nc-gui): creating new table in fields tab won't push to new table

pull/6820/head
DarkPhoenix2704 1 year ago
parent
commit
dc3859aa58
  1. 2
      packages/nc-gui/composables/useTableNew.ts

2
packages/nc-gui/composables/useTableNew.ts

@ -82,7 +82,7 @@ export function useTableNew(param: { onTableCreate?: (tableMeta: TableType) => v
const views = viewsByTable.value.get(table.id as string) ?? [] const views = viewsByTable.value.get(table.id as string) ?? []
getMeta(table.id as string, (route.value.params?.viewId as string) !== table.id) await getMeta(table.id as string, (route.value.params?.viewId as string) !== table.id)
if (openedViewsTab.value !== 'view' && views.length && views[0].id) { if (openedViewsTab.value !== 'view' && views.length && views[0].id) {
await navigateTo({ await navigateTo({

Loading…
Cancel
Save