Browse Source

fix: base type checks

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3573/head
mertmit 2 years ago
parent
commit
0e96388d54
  1. 2
      packages/nc-gui/components/smartsheet/column/CurrencyOptions.vue
  2. 4
      packages/nc-gui/components/smartsheet/column/SelectOptions.vue

2
packages/nc-gui/components/smartsheet/column/CurrencyOptions.vue

@ -62,7 +62,7 @@ const currencyLocaleList = currencyLocales() || []
const isMoney = computed(() => vModel.value.dt === 'money')
const message = computed(() => {
if (isMoney.value && isPg) return "PostgreSQL 'money' type has own currency settings"
if (isMoney.value && isPg.value) return "PostgreSQL 'money' type has own currency settings"
return ''
})

4
packages/nc-gui/components/smartsheet/column/SelectOptions.vue

@ -11,9 +11,7 @@ const emit = defineEmits(['update:value'])
const vModel = useVModel(props, 'value', emit)
const { isPg, isMysql } = useProject()
const { setAdditionalValidations, validateInfos } = useColumnCreateStoreOrThrow()
const { setAdditionalValidations, validateInfos, isPg, isMysql } = useColumnCreateStoreOrThrow()
let options = $ref<any[]>([])

Loading…
Cancel
Save