Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 50db8ef

Browse files
committed
refactor(client): circular dependency in fnote
1 parent 8ab21f3 commit 50db8ef

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

apps/client/src/entities/fnote.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import server from "../services/server.js";
22
import noteAttributeCache from "../services/note_attribute_cache.js";
33
import ws from "../services/ws.js";
4-
import froca from "../services/froca.js";
54
import protectedSessionHolder from "../services/protected_session_holder.js";
65
import cssClassManager from "../services/css_class_manager.js";
76
import type { Froca } from "../services/froca-interface.js";
@@ -410,8 +409,8 @@ class FNote {
410409
const notePaths: NotePathRecord[] = this.getAllNotePaths().map((path) => ({
411410
notePath: path,
412411
isInHoistedSubTree: isHoistedRoot || path.includes(hoistedNoteId),
413-
isArchived: path.some((noteId) => froca.notes[noteId].isArchived),
414-
isSearch: path.some((noteId) => froca.notes[noteId].type === "search"),
412+
isArchived: path.some((noteId) => this.froca.notes[noteId].isArchived),
413+
isSearch: path.some((noteId) => this.froca.notes[noteId].type === "search"),
415414
isHidden: path.includes("_hidden")
416415
}));
417416

@@ -982,7 +981,7 @@ class FNote {
982981
continue;
983982
}
984983

985-
const parentNote = froca.notes[parentNoteId];
984+
const parentNote = this.froca.notes[parentNoteId];
986985

987986
if (!parentNote || parentNote.type === "search") {
988987
continue;

0 commit comments

Comments
 (0)