mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fix searching by label
This commit is contained in:
@@ -60,7 +60,11 @@ const BUILTIN_ATTRIBUTES = [
|
||||
];
|
||||
|
||||
function getNotesWithLabel(name, value) {
|
||||
return searchService.searchNotes(formatAttrForSearch({type: 'label', name, value}, true));
|
||||
const query = formatAttrForSearch({type: 'label', name, value}, true);
|
||||
return searchService.searchNotes(query, {
|
||||
includeArchivedNotes: true,
|
||||
ignoreHoistedNote: true
|
||||
});
|
||||
}
|
||||
|
||||
function getNoteIdsWithLabels(names) {
|
||||
|
||||
Reference in New Issue
Block a user