From cea7bc4e06b0e2b19437300a12661bfcf0fb25ef Mon Sep 17 00:00:00 2001 From: Chris Veleris Date: Fri, 7 Nov 2025 00:39:56 +0200 Subject: [PATCH] Add back checkbox selection --- frontend/components/Notes.tsx | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/frontend/components/Notes.tsx b/frontend/components/Notes.tsx index 8fcae1e..abfc8f8 100644 --- a/frontend/components/Notes.tsx +++ b/frontend/components/Notes.tsx @@ -1240,18 +1240,26 @@ const Notes: React.FC = () => { // Save to backend if (previewNote.uid) { try { - const savedNote = await updateNote( - previewNote.uid, - updatedNote - ); + const savedNote = + await updateNote( + previewNote.uid, + updatedNote + ); // Update notes list - const updatedNotes = notes.map((n) => - n.uid === previewNote.uid ? savedNote : n - ); + const updatedNotes = + notes.map((n) => + n.uid === + previewNote.uid + ? savedNote + : n + ); setNotes(updatedNotes); setPreviewNote(savedNote); } catch (err) { - console.error('Error updating note:', err); + console.error( + 'Error updating note:', + err + ); } } }}