From 9a39fe6cb58a3ad5df8acb70e15b17c7e67680e2 Mon Sep 17 00:00:00 2001 From: Alice Hernandez Date: Mon, 8 Jun 2026 20:11:24 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20initial=20load?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/Editor/MarkdownEditor.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/Editor/MarkdownEditor.tsx b/src/renderer/components/Editor/MarkdownEditor.tsx index 0b8902f..d9e5a29 100644 --- a/src/renderer/components/Editor/MarkdownEditor.tsx +++ b/src/renderer/components/Editor/MarkdownEditor.tsx @@ -92,10 +92,12 @@ export function MarkdownEditor(): JSX.Element { useEffect(() => { if (!editorRef.current) return const isDark = theme === 'dark' + const { activeStoryContent, activeStoryPath } = useBorgesStore.getState() + lastPathRef.current = activeStoryPath const view = new EditorView({ state: EditorState.create({ - doc: '', + doc: activeStoryContent, extensions: [ history(), markdown(),