Skip to content
Snippets Groups Projects
Commit 5da7dd21 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix custom field value equal to 0 ignored

parent 68e34c33
No related branches found
No related tags found
No related merge requests found
......@@ -312,7 +312,7 @@ export default {
fillCustomFormData(customFormData) {
for (const el in customFormData) {
if (el && this.form[el] && customFormData[el]) {
if (el && this.form[el] && customFormData[el] !== undefined && customFormData[el] !== null) {
//* check if is an object, because data from api is a string, while import from django is an object
this.form[el].value = customFormData[el].value
? customFormData[el].value
......
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