From 9378a5341317ade14f390e0141ccc9b428407ccf Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 3 Aug 2022 19:28:58 +0800 Subject: [PATCH] fix(gui-v2): make meta as {} --- packages/nc-gui-v2/composables/useColumnCreateStore.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/composables/useColumnCreateStore.ts b/packages/nc-gui-v2/composables/useColumnCreateStore.ts index 50328a7b0e..b384e9f6d7 100644 --- a/packages/nc-gui-v2/composables/useColumnCreateStore.ts +++ b/packages/nc-gui-v2/composables/useColumnCreateStore.ts @@ -33,6 +33,7 @@ const [useProvideColumnCreateStore, useColumnCreateStore] = createInjectionState const formState = ref>>({ 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,