Commit 9ed7dd8c authored by Jérome Perrin's avatar Jérome Perrin

GUI: fix condition to display expandable field

parent 0ecc3b2f
......@@ -41,7 +41,9 @@
})
);
// 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.length === 1) {
property_definition = {
allOf: [{properties: property_definition.properties},
{ 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