mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 13:19:54 +01:00
fix(search): double results if search has inheritable viewType
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user