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

Loading…
Cancel
Save