Commit e842ba63 authored by Jérome Perrin's avatar Jérome Perrin

fixup! GUI: fix condition to display expandable field

parent c82c6ebf
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
// use expandable field if we have a oneOf in the schema // use expandable field if we have a oneOf in the schema
if (property_definition.oneOf && if (property_definition.oneOf &&
property_definition.properties && property_definition.properties &&
property_definition.properties.length === 1) { Object.keys(property_definition.properties).length === 1) {
property_definition = { property_definition = {
allOf: [{properties: property_definition.properties}, allOf: [{properties: property_definition.properties},
{ oneOf: property_definition.oneOf} ] }; { oneOf: property_definition.oneOf} ] };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment