Tidy up the full frontend codebase and use optional chaining where possible (#620)

* Tidy up the full frontend codebase and use optional chaining where possible

* Code review changes
This commit is contained in:
Keavon Chambers
2022-04-30 02:52:53 -07:00
parent 92ee3bbad3
commit 07736a9fca
28 changed files with 640 additions and 622 deletions
+2 -5
View File
@@ -318,11 +318,8 @@ export default defineComponent({
this.inputManager = createInputManager(this.editor, this.$el.parentElement, this.dialog, this.documents, this.fullscreen);
},
beforeUnmount() {
const { inputManager } = this;
if (inputManager) inputManager.removeListeners();
const { editor } = this;
editor.instance.free();
this.inputManager?.removeListeners();
this.editor.instance.free();
},
components: {
MainWindow,