Skip to content
Snippets Groups Projects
Commit a3c0dce0 authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Make the frontend allow 0 / false etc as default values in user configuration

parent 20d767b4
No related branches found
No related tags found
1 merge request!1237Make the frontend allow 0 / false etc as default values in user configuration
......@@ -110,8 +110,7 @@ export default {
if (!this.schema) return
const filledForm = {}
for (const property in this.schema) {
filledForm[property] = ''
if (this.schema[property].default) filledForm[property] = this.schema[property].default
filledForm[property] = this.schema[property].default ?? ''
}
return filledForm
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment