Browse Source

fix: mysql select not working

pull/6323/head
DarkPhoenix2704 1 year ago
parent
commit
c1d831842c
  1. 3
      packages/nc-gui/components/smartsheet/column/SelectOptions.vue

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

@ -191,7 +191,8 @@ watch(vModel.value, (next) => {
const values = (next.colOptions.options ?? []).map((col) => { const values = (next.colOptions.options ?? []).map((col) => {
return col.title.replaceAll("'", '') return col.title.replaceAll("'", '')
}) })
next.cdf = cdfs.filter((c: string) => values.includes(c)).join(',') const newCdf = cdfs.filter((c: string) => values.includes(c)).join(',')
next.cdf = newCdf.length === 0 ? null : newCdf
}) })
</script> </script>

Loading…
Cancel
Save