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 }); }