Fix most predicates not working

This commit is contained in:
Misode
2019-10-05 17:23:21 +02:00
parent 00336111c2
commit 77d2f2024a

View File

@@ -403,7 +403,7 @@ function generateField(data, field, parent) {
}
childs.shift();
}
if (componentData === undefined) {
if (componentData[childs[0]] === undefined) {
if (field.type === 'object') {
componentData[childs[0]] = {};
} else if (field.type === 'enum' && field.default) {