Skip to content

Commit 79e909c

Browse files
Ma27AntoLC
authored andcommitted
🐛(editor) fix TypeError in document editor
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 <maximilian@mbosch.me>
1 parent 03c049f commit 79e909c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import {
5252
const AIMenu = BlockNoteAI?.AIMenu;
5353
const AIMenuController = BlockNoteAI?.AIMenuController;
5454
const useAI = BlockNoteAI?.useAI;
55-
const localesBNAI = BlockNoteAI?.localesAI;
55+
const localesBNAI = BlockNoteAI?.localesAI || {};
5656
import {
5757
InterlinkingLinkInlineContent,
5858
InterlinkingSearchInlineContent,

0 commit comments

Comments
 (0)