Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client-ts: Fix build errors in froca
Elian Doranc5113d9881d9
diff --git a/src/public/app/services/froca.ts b/src/public/app/services/froca.tsindex 974633783a..cd12e7c309 100644--- a/src/public/app/services/froca.ts+++ b/src/public/app/services/froca.ts@@ -1,6 +1,6 @@-import FBranch from "../entities/fbranch.js";-import FNote from "../entities/fnote.js";-import FAttribute from "../entities/fattribute.js";+import FBranch, { FBranchRow } from "../entities/fbranch.js";+import FNote, { FNoteRow } from "../entities/fnote.js";+import FAttribute, { FAttributeRow } from "../entities/fattribute.js";import server from "./server.js";import appContext from "../components/app_context.js";import FBlob, { FBlobRow } from "../entities/fblob.js";@@ -206,7 +206,7 @@ class FrocaImpl implements Froca {froca.notes[note.noteId].childToBranch = {};}- const branches = [...note.getParentBranches(), ...note.getChildBranches()];+ const branches: FBranchRow[] = [...note.getParentBranches(), ...note.getChildBranches()];searchResultNoteIds.forEach((resultNoteId, index) => branches.push({// branchId should be repeatable since sometimes we reload some notes without rerendering the tree