diff --git a/packages/nc-gui-v2/composables/useColumn.ts b/packages/nc-gui-v2/composables/useColumn.ts index 07b90f5180..2b5bfd0809 100644 --- a/packages/nc-gui-v2/composables/useColumn.ts +++ b/packages/nc-gui-v2/composables/useColumn.ts @@ -33,7 +33,7 @@ export function useColumn(column: Ref) { const isEmail = computed(() => uiDatatype.value === UITypes.Email) const isAttachment = computed(() => uiDatatype.value === UITypes.Attachment) const isRating = computed(() => uiDatatype.value === UITypes.Rating) - const isCurrency = computed(() => uiDatatype.value === 'Currency') + const isCurrency = computed(() => uiDatatype.value === UITypes.Currency) const isPhoneNumber = computed(() => uiDatatype.value === UITypes.PhoneNumber) const isDecimal = computed(() => uiDatatype.value === UITypes.Decimal) const isDuration = computed(() => uiDatatype.value === UITypes.Duration) @@ -91,6 +91,6 @@ export function useColumn(column: Ref) { isMultiSelect, isPercent, isPhoneNumber, - isSpecificDBType + isSpecificDBType, } } diff --git a/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index/index.vue b/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index/index.vue index c28edbe275..2529080b74 100644 --- a/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index/index.vue +++ b/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index/index.vue @@ -61,7 +61,7 @@ function onDrop(droppedFiles: File[] | null) { if (isAllowed) { const ext = droppedFiles[0].name.split('.').pop() - fileType = (ext === 'csv' || ext === 'json') ? ext : 'excel' as QuickImportTypes + fileType = ext === 'csv' || ext === 'json' ? ext : ('excel' as QuickImportTypes) } return isAllowed