Search term search will show empty folders too - Char list did hide folders with 0 sub entities inside. This also applied to any search being done. Now when searching, if a tag/folder matches, it is shown, even if the chars inside don't match. Before that, it was not possible to "search" for tags without the "Advanced Character Search" enabled

7b5baad5cddd4bd1af75e1930436e397a2b4e098

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +3 -2Ignore whitespace
public/scripts/tags.js+3 -2
@@ -196,9 +196,10 @@ function filterByTagState(entities, { globalDisplayFilters = false, subForEntity
196 return false;196 return false;
197 }197 }
198198
199 // Hide folders that have 0 visible sub entities after the first filtering round199 // Hide folders that have 0 visible sub entities after the first filtering round, unless we are inside a search via search term.
200 // Then we want to display folders that mach too, even if the chars inside don't match the search.
200 if (entity.type === 'tag') {201 if (entity.type === 'tag') {
201 return entity.entities.length > 0;202 return entity.entities.length > 0 || entitiesFilter.getFilterData(FILTER_TYPES.SEARCH);
202 }203 }
203204
204 return true;205 return true;