fix searching by label

This commit is contained in:
zadam
2021-07-04 21:05:47 +02:00
parent 8d3a3d4873
commit e25b965cb3
3 changed files with 8 additions and 4 deletions

View File

@@ -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) {