fix: prevent errors when destroying local data on launch challenge

This commit is contained in:
Baptiste Grob
2020-10-16 11:59:44 +02:00
parent 04131f8e62
commit 5b814ea9be
2 changed files with 4 additions and 4 deletions

View File

@@ -923,8 +923,8 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> {
if (
this.state.marginResizersEnabled &&
this.leftPanelPuppet!.ready &&
this.rightPanelPuppet!.ready
this.leftPanelPuppet?.ready &&
this.rightPanelPuppet?.ready
) {
const width = this.application.getPrefsService().getValue(
WebPrefKey.EditorWidth,