Browse Source

Merge pull request #7168 from nocodb/fix/fields-column-sync

fix : fixed column syncing in useViewColumnsOrThrow hook
pull/7179/head
աӄա 11 months ago committed by GitHub
parent
commit
71805be917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/nc-gui/composables/useViewColumns.ts

4
packages/nc-gui/composables/useViewColumns.ts

@ -275,9 +275,9 @@ const [useProvideViewColumns, useViewColumns] = useInjectionState(
}
// reload view columns when active view changes
// or when columns count changes(delete/add)
// or when columns changes(delete/add)
watch(
[() => view?.value?.id, () => meta.value?.columns?.length],
[() => view?.value?.id, () => meta.value?.columns],
async ([newViewId]) => {
// reload only if view belongs to current table
if (newViewId && view.value?.fk_model_id === meta.value?.id) {

Loading…
Cancel
Save