diff --git a/client/components/meta-inputs/meta-checkbox/Edit.vue b/client/components/meta-inputs/meta-checkbox/Edit.vue index 9c772556b..eac4f5813 100644 --- a/client/components/meta-inputs/meta-checkbox/Edit.vue +++ b/client/components/meta-inputs/meta-checkbox/Edit.vue @@ -1,28 +1,51 @@ diff --git a/client/components/meta-inputs/meta-color/Edit/index.vue b/client/components/meta-inputs/meta-color/Edit/index.vue index 97deffc87..861552e4b 100644 --- a/client/components/meta-inputs/meta-color/Edit/index.vue +++ b/client/components/meta-inputs/meta-color/Edit/index.vue @@ -47,17 +47,13 @@ export default { props: { meta: { type: Object, default: () => ({ value: null }) } }, - data() { - return { - showInput: false, - colors: this.meta.colors || DEFAULT_COLORS, - value: this.meta.value - }; - }, + data: ({ meta }) => ({ + showInput: false, + colors: meta.colors || DEFAULT_COLORS, + value: meta.value + }), computed: { - selected() { - return this.value || get(this.colors, '[0][0]', '#000000'); - } + selected: vm => vm.value || get(vm.colors, '[0][0]', '#000000') }, methods: { select(color) { @@ -74,25 +70,25 @@ export default {