mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
While clicking on Select2 control, it tries to destroy the control and thus it doesn't get this object sometimes and throws error.
It should attempt to destroy the select2 object only if this object is not undefined.
This commit is contained in:
committed by
Dave Page
parent
0df968f679
commit
7f507f294e
@@ -1894,7 +1894,7 @@
|
||||
].join("\n")),
|
||||
render: function() {
|
||||
|
||||
if(this.$sel && this.$sel.select2) {
|
||||
if(this && this.$sel && this.$sel.select2) {
|
||||
this.$sel.select2('destroy');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user