From 74b570daf712e6426f9565867fb1a4adeb75df52 Mon Sep 17 00:00:00 2001 From: Cosmo Myzrail Gorynych Date: Thu, 19 Sep 2024 13:43:42 +1200 Subject: [PATCH] :bug: Fix tabs with room editor not opening again if this room editor has an event editor open --- src/riotTags/editors/room-editor/room-events-editor.tag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/riotTags/editors/room-editor/room-events-editor.tag b/src/riotTags/editors/room-editor/room-events-editor.tag index ef53966cf..80cfdb659 100644 --- a/src/riotTags/editors/room-editor/room-events-editor.tag +++ b/src/riotTags/editors/room-editor/room-events-editor.tag @@ -33,7 +33,7 @@ room-events-editor.aDimmer.relative.pad.fadein(onclick="{tryClose}") this.focusEditor = (tab) => { if (tab?.uid === this.room.uid) { - this.refs.codeeditor.codeEditor.focus(); + this.refs.codeeditor.codeEditor?.focus(); } }; window.signals.on('globalTabChanged', this.focusEditor);