From a5408ba8da5acfbb6a64f2f25858a3b7858e08f7 Mon Sep 17 00:00:00 2001 From: aewing Date: Sun, 29 Mar 2026 03:36:01 +0000 Subject: [PATCH] Keep new note form cleared after create --- notes-workspace.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/notes-workspace.html b/notes-workspace.html index 78bb1d0..23caaf8 100644 --- a/notes-workspace.html +++ b/notes-workspace.html @@ -948,10 +948,8 @@ const record = await pb.collection(NOTES_COLLECTION).create(payload); const uploaded = await uploadPendingAttachments(record.id); await loadNotes(); - const refreshed = allNotes.find((n) => n.id === record.id) || record; - selectNote(refreshed); + clearForm(); renderList(); - await renderSelectedAttachments(); writeOutput({ message: 'Note created', id: record.id, attachmentsUploaded: uploaded.length }); }