From 0d668693b9b146405bf2cf3c1e30890fd2ac9652 Mon Sep 17 00:00:00 2001 From: Atreus-X Date: Wed, 30 Sep 2026 14:18:46 -0400 Subject: [PATCH] fix: clear the Notes tab error when selecting, deleting or editing the new-note name Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01W6QMXXvRReaKxWk1JL5Et6 --- frontend/app/view/library/library.tsx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/frontend/app/view/library/library.tsx b/frontend/app/view/library/library.tsx index 2682384271..29bb695e55 100644 --- a/frontend/app/view/library/library.tsx +++ b/frontend/app/view/library/library.tsx @@ -429,6 +429,7 @@ const NotesTab = memo(({ model }: { model: LibraryViewModel }) => { key={n.host ? `h:${n.host}` : `n:${n.name}`} onClick={() => { setConfirmDelete(false); + setError(null); globalStore.set(model.selectedNoteAtom, ref); }} className={cn( @@ -449,7 +450,10 @@ const NotesTab = memo(({ model }: { model: LibraryViewModel }) => {
{newName == null ? (