Browse Source

fix: missing null check

pull/6584/head
mertmit 1 year ago
parent
commit
c88b604242
  1. 2
      packages/nc-gui/components/smartsheet/column/DefaultValue.vue

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

@ -30,7 +30,7 @@ const updateCdfValue = (cdf: string | null) => {
}
onMounted(() => {
updateCdfValue(vModel.value.cdf.replace(/^'/, '').replace(/'$/, ''))
updateCdfValue(vModel.value?.cdf ? vModel.value.cdf.replace(/^'/, '').replace(/'$/, '') : null)
})
</script>

Loading…
Cancel
Save