fix guestpage editor (#269)

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
formsdev
2024-01-03 16:00:48 +05:30
committed by GitHub
parent a51ccfebec
commit 3fcf1736df
5 changed files with 40 additions and 61 deletions

View File

@@ -246,7 +246,7 @@ export default {
},
init () {
if (this.route.name === 'forms-create' || this.route.name === 'forms-create-guest') { // Set Default fields
if (!this.form.properties) {
if (!this.form.properties || this.form.properties.length===0) {
this.form.properties = this.getDefaultFields()
}
} else {