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:
committed by
Dave Page
parent
2952faab5e
commit
19bd021696
@@ -1894,7 +1894,8 @@
|
|||||||
].join("\n")),
|
].join("\n")),
|
||||||
render: function() {
|
render: function() {
|
||||||
|
|
||||||
if(this && this.$sel && this.$sel.select2) {
|
if(this.$sel && this.$sel.select2 &&
|
||||||
|
this.$sel.select2.hasOwnProperty('destroy')) {
|
||||||
this.$sel.select2('destroy');
|
this.$sel.select2('destroy');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user