Skip to content

Commit

Permalink
swaps array type checking to before check for self.multi in concept-s…
Browse files Browse the repository at this point in the history
…elect re #10529
  • Loading branch information
whatisgalen committed Mar 28, 2024
1 parent 573b7e3 commit 2ad08cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arches/app/media/js/viewmodels/concept-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ define([
var valueList = self.value() || self.defaultValue();
self.displayName();

if (!self.multiple && valueList) {
valueList = [valueList];
}
if (Array.isArray(valueList)) {
return valueList;
}
if (!self.multiple && valueList) {
return [valueList];
}
return [];
});

Expand Down

0 comments on commit 2ad08cc

Please sign in to comment.