working api create note, view note, view notes, create task with ui

This commit is contained in:
2026-02-27 14:53:53 -06:00
parent 20a19006d5
commit 89b5063786
3 changed files with 58 additions and 25 deletions
+1 -3
View File
@@ -23,9 +23,7 @@ export const NotepadView: Component<{
// Derived states
const activeNote = createMemo(() => {
const id = props.selectedNoteId?.trim();
const note = store.notes.find(n => n.id === id) || null;
console.log('[DEBUG NotepadView] store.notes length:', store.notes.length, 'selectedNoteId:', id, 'found Note:', !!note);
return note;
return store.notes.find(n => n.id === id) || null;
});
const handleUpdateNote = async (id: string, data: Partial<Note>) => {