From 846cd72c384053e60895b207c5ff112534205ef8 Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Tue, 26 May 2026 19:22:32 -0400 Subject: [PATCH] fix: guard EditorContent against null editor in tiptap 3.23.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tiptap v3.19+ throws when EditorContent receives a null editor (ueberdosis/tiptap#7529). useEditor() returns null on the first render cycle before the instance is constructed — this was tolerated in 3.22.5 but crashes silently in 3.23.6, killing the entire ChannelPane subtree. --- desktop/src/features/forum/ui/ForumComposer.tsx | 2 +- desktop/src/features/forum/ui/ForumComposerCompactLayout.tsx | 2 +- desktop/src/features/messages/ui/MessageComposer.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/src/features/forum/ui/ForumComposer.tsx b/desktop/src/features/forum/ui/ForumComposer.tsx index b88c1fe35c..81d0d174d0 100644 --- a/desktop/src/features/forum/ui/ForumComposer.tsx +++ b/desktop/src/features/forum/ui/ForumComposer.tsx @@ -451,7 +451,7 @@ export function ForumComposer({ className="rich-text-composer max-h-32 overflow-y-auto" onKeyDown={handleEditorKeyDown} > - + {richText.editor && } - + {editor && }