Browse Source

fix: use ref value instead & drop unnecessary logic

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3620/head
mertmit 2 years ago
parent
commit
056da116de
  1. 4
      packages/nc-gui/components/smartsheet-column/AdvancedOptions.vue

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

@ -40,8 +40,8 @@ vModel.value.ai = !!vModel.value.ai
vModel.value.au = !!vModel.value.au vModel.value.au = !!vModel.value.au
onBeforeMount(() => { onBeforeMount(() => {
// Postgres returns default value wrapped with single quotes & sometimes casted with type so we have to remove them to keep it unified for all databases // Postgres returns default value wrapped with single quotes & casted with type so we have to get value between single quotes to keep it unified for all databases
if (isPg && vModel.value.cdf.indexOf(`'`) !== vModel.value.cdf.lastIndexOf(`'`)) { if (isPg.value && vModel.value.cdf) {
vModel.value.cdf = vModel.value.cdf.substring(vModel.value.cdf.indexOf(`'`) + 1, vModel.value.cdf.lastIndexOf(`'`)) vModel.value.cdf = vModel.value.cdf.substring(vModel.value.cdf.indexOf(`'`) + 1, vModel.value.cdf.lastIndexOf(`'`))
} }
}) })

Loading…
Cancel
Save