working api create note, view note, view notes, create task with ui
This commit is contained in:
@@ -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>) => {
|
||||
|
||||
Reference in New Issue
Block a user