From 47ec9b265702e944bd9d1ffb248e4dc5f450aeec Mon Sep 17 00:00:00 2001 From: Daniel Spaude Date: Thu, 16 Mar 2023 16:14:55 +0100 Subject: [PATCH] code cleanup --- packages/nc-gui/composables/useSharedFormViewStore.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/useSharedFormViewStore.ts b/packages/nc-gui/composables/useSharedFormViewStore.ts index 3c53b7fd30..e4031a7679 100644 --- a/packages/nc-gui/composables/useSharedFormViewStore.ts +++ b/packages/nc-gui/composables/useSharedFormViewStore.ts @@ -1,7 +1,7 @@ import useVuelidate from '@vuelidate/core' import { helpers, minLength, required } from '@vuelidate/validators' import type { Ref } from 'vue' -import type { ColumnType, FormType, LinkToAnotherRecordType, TableType, ViewType } from 'nocodb-sdk' +import type { BoolType, ColumnType, FormType, LinkToAnotherRecordType, StringOrNullType, TableType, ViewType } from 'nocodb-sdk' import { ErrorMessages, RelationTypes, UITypes, isVirtualCol } from 'nocodb-sdk' import { isString } from '@vueuse/core' import { @@ -37,7 +37,8 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share const sharedView = ref() const sharedFormView = ref() const meta = ref() - const columns = ref<(ColumnType & { required?: boolean; show?: boolean; label?: string; enable_scanner?: boolean })[]>() + const columns = + ref<(ColumnType & { required?: BoolType; show?: BoolType; label?: StringOrNullType; enable_scanner?: BoolType })[]>() const sharedViewMeta = ref({}) const formResetHook = createEventHook()