From fccdd9c69ad27da17e17e98c56c644f80aa144a6 Mon Sep 17 00:00:00 2001 From: mertmit Date: Tue, 24 May 2022 22:14:30 +0300 Subject: [PATCH] fix: default colMeta on new column creation Signed-off-by: mertmit --- .../spreadsheet/components/editColumn/CheckboxOptions.vue | 2 +- .../spreadsheet/components/editColumn/CurrencyOptions.vue | 2 +- .../project/spreadsheet/components/editColumn/RatingOptions.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 } } }