Reflect AI changes on form fields editor

This commit is contained in:
Julien Nahum 2023-03-27 16:22:24 +02:00
parent 5ba010a493
commit 0de67278fc
1 changed files with 12 additions and 0 deletions

View File

@ -209,7 +209,19 @@ export default {
handler() { handler() {
this.$set(this.form, 'properties', this.formFields) this.$set(this.form, 'properties', this.formFields)
} }
},
'form.properties':{
deep: true,
handler() {
// If different, then update
if (this.form.properties.length !== this.formFields.length ||
JSON.stringify(this.form.properties) !== JSON.stringify(this.formFields)) {
this.formFields = clonedeep(this.form.properties)
}
}
} }
}, },
mounted() { mounted() {