mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06: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:
parent
3887c84446
commit
fc926d7200
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user