Check for presence of RfC Modal before hiding
Fix CODEOCEAN-FRONTEND-E
This commit is contained in:
@ -385,7 +385,10 @@ var CodeOceanEditor = {
|
|||||||
$(document).unbind('keydown');
|
$(document).unbind('keydown');
|
||||||
this.teardownWorkspaceButtons();
|
this.teardownWorkspaceButtons();
|
||||||
this.teardownRequestForComments();
|
this.teardownRequestForComments();
|
||||||
bootstrap.Modal.getInstance($('#comment-modal'))?.hide();
|
const rfcModal = $('#comment-modal');
|
||||||
|
if (rfcModal.isPresent()) {
|
||||||
|
bootstrap.Modal.getInstance(rfcModal)?.hide();
|
||||||
|
}
|
||||||
this.teardownFileTreeButtons();
|
this.teardownFileTreeButtons();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user