Browse Source

fix: replace quotes in ends

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

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

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

Loading…
Cancel
Save