Merge branch 'migrate-to-nuxt' of https://github.com/JhumanJ/OpnForm into migrate-to-nuxt

This commit is contained in:
Julien Nahum
2024-01-03 17:38:18 +01:00
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 {