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( watch(
[() => columns.value?.length, () => view.value?.id], [() => columns.value?.length, () => view.value?.id],
async (n) => { 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) => { const updateGridViewColumn = async (id: string, props: Partial<GridColumnReqType>, undo = false) => {

Loading…
Cancel
Save