mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
allow multiple instances of @in operator, closes #716
This commit is contained in:
parent
cfb850acb2
commit
7a2c7edd7e
@ -35,9 +35,9 @@ async function searchForNoteIds(searchString) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const isInFilter = filters.find(filter => filter.name.toLowerCase() === 'in');
|
const isInFilters = filters.filter(filter => filter.name.toLowerCase() === 'in');
|
||||||
|
|
||||||
if (isInFilter) {
|
for (const isInFilter of isInFilters) {
|
||||||
if (isInFilter.operator === '=') {
|
if (isInFilter.operator === '=') {
|
||||||
noteIds = noteIds.filter(noteId => noteCacheService.isInAncestor(noteId, isInFilter.value));
|
noteIds = noteIds.filter(noteId => noteCacheService.isInAncestor(noteId, isInFilter.value));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user