diff --git a/packages/nc-gui/components/project/spreadsheet/components/cell/enumCell.vue b/packages/nc-gui/components/project/spreadsheet/components/cell/enumCell.vue
index 70cfcb5800..5d2b7311b3 100644
--- a/packages/nc-gui/components/project/spreadsheet/components/cell/enumCell.vue
+++ b/packages/nc-gui/components/project/spreadsheet/components/cell/enumCell.vue
@@ -21,7 +21,7 @@ export default {
colors() {
const col = this.$store.state.windows.darkTheme ? colors.dark : colors.light
if (this.column && this.column.dtxp) {
- return this.column.dtxp.split(',').map(v => v.replace(/^'|'$/g, '')).reduce((obj, v, i) => ({
+ return this.column.dtxp.split(',').map(v => v.replace(/\\'/g, '\'').replace(/^'|'$/g, '')).reduce((obj, v, i) => ({
...obj,
[v]: col[i]
}), {})
diff --git a/packages/nc-gui/components/project/spreadsheet/components/cell/setListCell.vue b/packages/nc-gui/components/project/spreadsheet/components/cell/setListCell.vue
index 0c7e2811a9..32343cab8a 100644
--- a/packages/nc-gui/components/project/spreadsheet/components/cell/setListCell.vue
+++ b/packages/nc-gui/components/project/spreadsheet/components/cell/setListCell.vue
@@ -23,7 +23,7 @@ export default {
setValues() {
if (this.column && this.column.dtxp) {
- return this.column.dtxp.split(',').map(v => v.replace(/^'|'$/g, ''))
+ return this.column.dtxp.split(',').map(v => v.replace(/\\'/g, '\'').replace(/^'|'$/g, ''))
}
return []
}
diff --git a/packages/nc-gui/components/project/spreadsheet/components/editColumn/customSelectOptions.vue b/packages/nc-gui/components/project/spreadsheet/components/editColumn/customSelectOptions.vue
index e59855d0cb..aa52076a5d 100644
--- a/packages/nc-gui/components/project/spreadsheet/components/editColumn/customSelectOptions.vue
+++ b/packages/nc-gui/components/project/spreadsheet/components/editColumn/customSelectOptions.vue
@@ -22,7 +22,8 @@
>
mdi-plus
- Add option
+
+ Add option
@@ -30,6 +31,7 @@