Browse Source

fix(gui-v2): reload view columns meta when table meta changes

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2857/head
Pranav C 2 years ago
parent
commit
412a20fcfa
  1. 7
      packages/nc-gui-v2/composables/useViewColumns.ts

7
packages/nc-gui-v2/composables/useViewColumns.ts

@ -1,5 +1,6 @@
import { isSystemColumn } from 'nocodb-sdk'
import type { ColumnType, FormType, GalleryType, GridType, TableType } from 'nocodb-sdk'
import { watch } from 'vue'
import type { Ref } from 'vue'
import { useNuxtApp } from '#app'
@ -129,6 +130,12 @@ export default function (
[]) as ColumnType[]
})
// reload view columns when table meta changes
watch(
() => meta?.value,
() => loadViewColumns(),
)
return {
fields,
loadViewColumns,

Loading…
Cancel
Save