From 79e909cf6489428d8f6644d772006f73503b7073 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 28 Mar 2026 06:23:50 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(editor)=20fix=20TypeError=20in=20d?= =?UTF-8?q?ocument=20editor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I get > TypeError: Cannot use 'in' operator to search for 'de' in undefined when building MIT-only since `localesBNAI` is undefined then. Signed-off-by: Maximilian Bosch --- .../src/features/docs/doc-editor/components/BlockNoteEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx index b2a329b54..95744e963 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx @@ -52,7 +52,7 @@ import { const AIMenu = BlockNoteAI?.AIMenu; const AIMenuController = BlockNoteAI?.AIMenuController; const useAI = BlockNoteAI?.useAI; -const localesBNAI = BlockNoteAI?.localesAI; +const localesBNAI = BlockNoteAI?.localesAI || {}; import { InterlinkingLinkInlineContent, InterlinkingSearchInlineContent,