From de5491e5411f0354193c1802aca3e7bc1defe2f2 Mon Sep 17 00:00:00 2001 From: mertmit Date: Sun, 28 Apr 2024 02:41:50 +0000 Subject: [PATCH] chore: lint --- packages/nc-gui/composables/useSharedFormViewStore.ts | 2 +- packages/nc-gui/composables/useViewGroupBy.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/useSharedFormViewStore.ts b/packages/nc-gui/composables/useSharedFormViewStore.ts index 1631c39fb7..1f18338155 100644 --- a/packages/nc-gui/composables/useSharedFormViewStore.ts +++ b/packages/nc-gui/composables/useSharedFormViewStore.ts @@ -217,7 +217,7 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share ((column.rqd && !column.cdf) || (column.pk && !(column.ai || column.cdf)) || column.required) ) { obj.localState[column.title!] = { - required: fieldRequired(undefined, column.uidt === UITypes.Checkbox && column.required ? true : false), + required: fieldRequired(undefined, !!(column.uidt === UITypes.Checkbox && column.required)), } } else if ( isLinksOrLTAR(column) && diff --git a/packages/nc-gui/composables/useViewGroupBy.ts b/packages/nc-gui/composables/useViewGroupBy.ts index b2f08ae3d6..dafe5c8683 100644 --- a/packages/nc-gui/composables/useViewGroupBy.ts +++ b/packages/nc-gui/composables/useViewGroupBy.ts @@ -1,5 +1,5 @@ import { UITypes } from 'nocodb-sdk' -import type { ColumnType, LinkToAnotherRecordType, LookupType, SelectOptionsType, ViewType, TableType } from 'nocodb-sdk' +import type { ColumnType, LinkToAnotherRecordType, LookupType, SelectOptionsType, TableType, ViewType } from 'nocodb-sdk' import type { Ref } from 'vue' import { message } from 'ant-design-vue' import { extractSdkResponseErrorMsg } from '../utils'