diff --git a/public/js/components/Dashboard/WidgetAdmin/Edit.js b/public/js/components/Dashboard/WidgetAdmin/Edit.js
index 7ecdad619..f04bdb405 100644
--- a/public/js/components/Dashboard/WidgetAdmin/Edit.js
+++ b/public/js/components/Dashboard/WidgetAdmin/Edit.js
@@ -27,6 +27,24 @@ export default {
saving: false,
};
},
+ computed: {
+ value: {
+ get() {
+ return this.modelValue;
+ },
+ set(modelValue) {
+ this.$emit('update:modelValue', modelValue);
+ },
+ },
+ setup: {
+ get() {
+ return this.modelValue.setup;
+ },
+ set(setup) {
+ this.$emit('update:modelValue', { ...this.modelValue, setup });
+ },
+ },
+ },
watch: {
'originalData.setup.generator': {
async handler(gen) {
@@ -81,11 +99,11 @@ export default {
class="widgets-admin-edit mx-2"
@submit.prevent="save"
>
-