Safely dispose of editor

This commit is contained in:
Sipke Schoorstra 2021-04-15 15:48:22 +02:00
parent 18f45fe241
commit 2f93d167a1

View file

@ -162,7 +162,10 @@ export class ElsaMonaco {
}
disconnectedCallback() {
this.editor.dispose();
const editor = this.editor;
if (!!editor)
editor.dispose();
}
registerLiquid() {