Fix bug where reopening edit modal of shared env instance wouldnt render text editor
This commit is contained in:
@@ -125,6 +125,11 @@ const SharedEnvironments = {
|
|||||||
|
|
||||||
closeModal: function() {
|
closeModal: function() {
|
||||||
SharedEnvironments.modal.isOpen = false;
|
SharedEnvironments.modal.isOpen = false;
|
||||||
|
// Destroy editor reference so it can be recreated next time
|
||||||
|
if (SharedEnvironments.envEditor) {
|
||||||
|
SharedEnvironments.envEditor.destroy();
|
||||||
|
SharedEnvironments.envEditor = null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
saveEnvironment: async function(e) {
|
saveEnvironment: async function(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user