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

Function onOpen

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

Source from the content-addressed store, hash-verified

161 const n = notes.find((note) => note.path === menu.path)
162 if (!n) return []
163 const onOpen = async (): Promise<void> => {
164 await selectNote(n.path)
165 }
166 const onDuplicate = async (): Promise<void> => {
167 const meta = await window.zen.duplicateNote(n.path)
168 await refreshNotes()

Callers 4

TasksRowFunction · 0.85
TaskCardFunction · 0.85
AssetLeafFunction · 0.85
CalendarTaskRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected