mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure select2 instances have a destroy property before calling destroy.
This commit is contained in:
parent
2952faab5e
commit
19bd021696
@ -1894,7 +1894,8 @@
|
||||
].join("\n")),
|
||||
render: function() {
|
||||
|
||||
if(this && this.$sel && this.$sel.select2) {
|
||||
if(this.$sel && this.$sel.select2 &&
|
||||
this.$sel.select2.hasOwnProperty('destroy')) {
|
||||
this.$sel.select2('destroy');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user