Skip to content

Build your personal knowledge base with Trilium Notes

fix(search): double results if search has inheritable viewType

Elian Dorand7ae2e4307a2
diff --git a/apps/client/src/components/note_context.ts b/apps/client/src/components/note_context.ts
index 735978974a..b360c6fce1 100644
--- a/apps/client/src/components/note_context.ts
+++ b/apps/client/src/components/note_context.ts
@@ -321,6 +321,10 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded">
return false;
}
+ if (note.type === "search") {
+ return false;
+ }
+
if (!["default", "contextual-help"].includes(this.viewScope?.viewMode ?? "")) {
return false;
}