Fix bad filter counts

This commit is contained in:
Raymond Hill 2023-05-06 17:08:55 -04:00
parent 39bf6ffd13
commit cbc0cbadaa
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 0 deletions

View File

@ -380,6 +380,7 @@ const toggleFilterList = (elem, on, ui = false) => {
const updateListNode = listNode => {
if ( listNode === null ) { return; }
if ( listNode.dataset.role !== 'node' ) { return; }
if ( listNode.dataset.parent === 'root' ) { return; }
const listLeaves = qsa$(listNode, '.listEntry[data-role="leaf"].checked');
let usedFilterCount = 0;
let totalFilterCount = 0;