Skip to content

Build your personal knowledge base with Trilium Notes

test(client): fix typecheck issue

Elian Dorand5cbf362f803
diff --git a/apps/client/src/widgets/collections/board/data.spec.ts b/apps/client/src/widgets/collections/board/data.spec.ts
index 357aea6162..83a36ac0e6 100644
--- a/apps/client/src/widgets/collections/board/data.spec.ts
+++ b/apps/client/src/widgets/collections/board/data.spec.ts
@@ -24,7 +24,7 @@ describe("Board data", () => {
parentNoteId: "note1"
});
froca.branches["note1_note2"] = branch;
- froca.getNoteFromCache("note1").addChild("note2", "note1_note2", false);
+ froca.getNoteFromCache("note1")!.addChild("note2", "note1_note2", false);
const data = await getBoardData(parentNote, "status", {}, false);
const noteIds = Array.from(data.byColumn.values()).flat().map(item => item.note.noteId);
expect(noteIds.length).toBe(3);