From 335caf0319e856548c9ecab060a589389d1e5745 Mon Sep 17 00:00:00 2001 From: The Doom Lab Date: Tue, 19 Aug 2025 09:36:43 -0500 Subject: [PATCH] fix autosave --- src/notes/components/NotesPanel.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/notes/components/NotesPanel.tsx b/src/notes/components/NotesPanel.tsx index 35245a3e..f23b9621 100644 --- a/src/notes/components/NotesPanel.tsx +++ b/src/notes/components/NotesPanel.tsx @@ -51,8 +51,10 @@ export const NotesPanel = ({ projectId }: { projectId: number }) => { { + onCreated={async (id) => { + // First create → switch to edit mode so the editor stays open setCreating(false) + setEditingId(id) await refetch() }} onSaved={async () => {