diff --git a/packages/nc-gui/components/project/spreadsheet/components/editColumn/CheckboxOptions.vue b/packages/nc-gui/components/project/spreadsheet/components/editColumn/CheckboxOptions.vue index 023aa157d8..1aec3a9f43 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editColumn/CheckboxOptions.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editColumn/CheckboxOptions.vue @@ -82,7 +82,7 @@ export default { } }, created() { - this.colMeta = { ...this.value } || { ...this.colMeta } + this.colMeta = this.value ? { ...this.value } : { ...this.colMeta } } } diff --git a/packages/nc-gui/components/project/spreadsheet/components/editColumn/CurrencyOptions.vue b/packages/nc-gui/components/project/spreadsheet/components/editColumn/CurrencyOptions.vue index fec666ada1..fbfa1d1bff 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editColumn/CurrencyOptions.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editColumn/CurrencyOptions.vue @@ -58,7 +58,7 @@ export default { } }, created() { - this.colMeta = { ...this.value } || { ...this.colMeta } + this.colMeta = this.value ? { ...this.value } : { ...this.colMeta } } } diff --git a/packages/nc-gui/components/project/spreadsheet/components/editColumn/RatingOptions.vue b/packages/nc-gui/components/project/spreadsheet/components/editColumn/RatingOptions.vue index e00e38c8a5..9114edf2cd 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editColumn/RatingOptions.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editColumn/RatingOptions.vue @@ -87,7 +87,7 @@ export default { } }, created() { - this.colMeta = { ...this.value } || { ...this.colMeta } + this.colMeta = this.value ? { ...this.value } : { ...this.colMeta } } }