mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-14 17:11:59 -05:00
Resolved an issue of selection in the Select2Cell, when the value is of
type string and not an array.
This commit is contained in:
1 parent
3887c84446
commit
fc926d7200
1 file changed
+2
-1
@@ -341,7 +341,8 @@
|
||||
this.template({
|
||||
text: optionText,
|
||||
value: optionValue,
|
||||
selected: _.indexOf(selectedValues, optionValue) > -1
|
||||
selected: (selectedValues == optionValue) ||
|
||||
(_.indexOf(selectedValues, optionValue) > -1)
|
||||
}));
|
||||
} else {
|
||||
throw new TypeError("optionValues elements must be a name-value pair.");
|
||||
|
||||
Reference in new issue
Block a user