Browse Source

fix(gui-v2): make meta as {}

pull/2984/head
Wing-Kam Wong 2 years ago
parent
commit
9378a53413
  1. 3
      packages/nc-gui-v2/composables/useColumnCreateStore.ts

3
packages/nc-gui-v2/composables/useColumnCreateStore.ts

@ -33,6 +33,7 @@ const [useProvideColumnCreateStore, useColumnCreateStore] = createInjectionState
const formState = ref<Partial<Record<string, any>>>({ const formState = ref<Partial<Record<string, any>>>({
title: 'title', title: 'title',
uidt: UITypes.SingleLineText, uidt: UITypes.SingleLineText,
meta: {},
...(column || {}), ...(column || {}),
}) })
@ -92,7 +93,7 @@ const [useProvideColumnCreateStore, useColumnCreateStore] = createInjectionState
const colProp = sqlUi?.value.getDataTypeForUiType(formState?.value as any, idType as any) const colProp = sqlUi?.value.getDataTypeForUiType(formState?.value as any, idType as any)
formState.value = { formState.value = {
...formState.value, ...formState.value,
meta: null, meta: {},
rqd: false, rqd: false,
pk: false, pk: false,
ai: false, ai: false,

Loading…
Cancel
Save