MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / onDeleteForever

Function onDeleteForever

packages/app-core/src/components/NoteList.tsx:204–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202 if (selectedPath === n.path) await selectNote(meta.path)
203 }
204 const onDeleteForever = async (): Promise<void> => {
205 await window.zen.deleteNote(n.path)
206 await refreshNotes()
207 if (selectedPath === n.path) await selectNote(null)
208 }
209 const onNew = async (): Promise<void> => {
210 await useStore
211 .getState()

Callers

nothing calls this directly

Calls 1

deleteNoteMethod · 0.65

Tested by

no test coverage detected