Skip to content

Commit

Permalink
fix: assure single attribute dropdown is an array instead of a string
Browse files Browse the repository at this point in the history
Single attribute choice attribute is parsed as a string. Certifiy that it becomes an array to be
displayed on as a dropdown option.

#283
  • Loading branch information
lucaju committed Oct 6, 2020
1 parent 27dd39f commit d69e8a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/js/schema/schemaNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,8 @@ function SchemaNavigator() {
var choices = [];
var values = [];
_queryDown(choice, function(item) {
if (item.value) {
values = item.value;
}
if (item.value) values = item.value;
if (!Array.isArray(values)) values = [values]
});
for (var j = 0; j < values.length; j++) {
var val = values[j];
Expand Down

0 comments on commit d69e8a9

Please sign in to comment.