MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / fromIds

Method fromIds

apps/client/src/code/pages/page/notes/notes.ts:41–61  ·  view source on GitHub ↗
(noteIds: string[], regionId?: string)

Source from the content-addressed store, hash-verified

39 }
40 }
41 fromIds(noteIds: string[], regionId?: string): PageNote[] {
42 const noteIdsSet = new Set<string>();
43
44 const notesArray = [];
45
46 for (const noteId of noteIds) {
47 if (noteIdsSet.has(noteId)) {
48 continue;
49 }
50
51 noteIdsSet.add(noteId);
52
53 const note = this.fromId(noteId, regionId);
54
55 if (note != null) {
56 notesArray.push(note);
57 }
58 }
59
60 return notesArray;
61 }
62
63 createAndObserveChildren(noteId: string, index: number): void {
64 let note = this.fromId(noteId);

Callers 10

deserializeMethod · 0.45
constructorMethod · 0.45
setupMethod · 0.45
performMethod · 0.45
constructorMethod · 0.45
processDescendantsMethod · 0.45
selectAllMethod · 0.45
moveToRegionMethod · 0.45
constructorMethod · 0.45

Calls 3

fromIdMethod · 0.95
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected