Browse Source

fix: default colMeta on new column creation

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/2151/head
mertmit 3 years ago
parent
commit
006c1f5b94
  1. 2
      packages/nc-gui/components/project/spreadsheet/components/editColumn/CheckboxOptions.vue
  2. 2
      packages/nc-gui/components/project/spreadsheet/components/editColumn/CurrencyOptions.vue
  3. 2
      packages/nc-gui/components/project/spreadsheet/components/editColumn/RatingOptions.vue

2
packages/nc-gui/components/project/spreadsheet/components/editColumn/CheckboxOptions.vue

@ -82,7 +82,7 @@ export default {
} }
}, },
created() { created() {
this.colMeta = { ...this.value } || { ...this.colMeta } this.colMeta = this.value ? { ...this.value } : { ...this.colMeta }
} }
} }
</script> </script>

2
packages/nc-gui/components/project/spreadsheet/components/editColumn/CurrencyOptions.vue

@ -58,7 +58,7 @@ export default {
} }
}, },
created() { created() {
this.colMeta = { ...this.value } || { ...this.colMeta } this.colMeta = this.value ? { ...this.value } : { ...this.colMeta }
} }
} }
</script> </script>

2
packages/nc-gui/components/project/spreadsheet/components/editColumn/RatingOptions.vue

@ -87,7 +87,7 @@ export default {
} }
}, },
created() { created() {
this.colMeta = { ...this.value } || { ...this.colMeta } this.colMeta = this.value ? { ...this.value } : { ...this.colMeta }
} }
} }
</script> </script>

Loading…
Cancel
Save