Skip to content

Commit

Permalink
on select2-config init, falls back on array type check of valueList i…
Browse files Browse the repository at this point in the history
…f self.multi was init false before param.val was inherited re #10529
  • Loading branch information
whatisgalen committed Mar 28, 2024
1 parent 2ad08cc commit b1f0013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches/app/media/js/viewmodels/concept-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ define([
var setSelectionData = function(data) {
var valueData = [];

if (self.multiple) {
if (self.multiple || Array.isArray(valueList)) {
if (!(data instanceof Array)) { data = [data]; }

valueData = data.map(function(valueId) {
Expand Down

0 comments on commit b1f0013

Please sign in to comment.