Browse Source

fix(nc-gui): shared view column display issue after deleting column from table

pull/8033/head
Ramesh Mane 8 months ago
parent
commit
a2ceee11e6
  1. 6
      packages/nc-gui/composables/useSharedFormViewStore.ts

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

@ -132,7 +132,9 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share
{} as Record<string, FormColumnType>,
)
columns.value = viewMeta.model?.columns?.map((c) => {
columns.value = (viewMeta.model?.columns || [])
.filter((c) => fieldById[c.id])
.map((c) => {
if (
!isSystemColumn(c) &&
!isVirtualCol(c) &&
@ -188,6 +190,8 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share
if (password.value && password.value !== '') {
passwordError.value = error.message
}
} else if (error.error === NcErrorType.UNKNOWN_ERROR) {
console.log(e)
}
}
}

Loading…
Cancel
Save