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

This commit is contained in:
Elian Doran 2025-11-24 10:56:39 +02:00
parent 621e8078d9
commit d7ae2e4307
No known key found for this signature in database

View File

@ -321,6 +321,10 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded">
return false; return false;
} }
if (note.type === "search") {
return false;
}
if (!["default", "contextual-help"].includes(this.viewScope?.viewMode ?? "")) { if (!["default", "contextual-help"].includes(this.viewScope?.viewMode ?? "")) {
return false; return false;
} }