Fix non-filter lists ending into selected lists at install time

Fortunately, getAvailableLists() filters out non-filter
list resources thus preventing those mistakenly selected
resources from being loaded as filter lists.
This commit is contained in:
Raymond Hill 2023-12-01 12:03:54 -05:00
parent ea7d411bc2
commit c4de5552e5
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 0 deletions

View File

@ -635,6 +635,7 @@ import {
for ( const key in lists ) {
if ( lists.hasOwnProperty(key) === false ) { continue; }
const list = lists[key];
if ( list.content !== 'filters' ) { continue; }
if ( list.off !== true ) {
selectedListKeys.push(key);
continue;