create note on click if does not exist
This commit is contained in:
@@ -104,6 +104,7 @@ export const addNote = (title: string, content: string, goToNote: boolean = fals
|
||||
}
|
||||
baseNotes[id] = newNote
|
||||
if (goToNote) setActiveNote(id)
|
||||
return newNote
|
||||
}
|
||||
|
||||
export const deleteNote = (noteId: string) => {
|
||||
|
||||
Reference in New Issue
Block a user