Browse Source

fix: load grid view columns

pull/6645/head
mertmit 1 year ago
parent
commit
097d966d86
  1. 6
      packages/nc-gui/composables/useGridViewColumn.ts

6
packages/nc-gui/composables/useGridViewColumn.ts

@ -38,9 +38,11 @@ const [useProvideGridViewColumn, useGridViewColumn] = useInjectionState(
watch(
[() => columns.value?.length, () => view.value?.id],
async (n) => {
if (n[1]) await loadGridViewColumns()
if (n[0] && n[1]) await loadGridViewColumns()
},
{
immediate: true,
},
{ immediate: true },
)
const updateGridViewColumn = async (id: string, props: Partial<GridColumnReqType>, undo = false) => {

Loading…
Cancel
Save