}
});
- const irrelevantPageIds = checkedPageIds.filter((pageId) => pageIds.includes(pageId));
+ const irrelevantPageIds = checkedPageIds.filter((pageId) => !pageIds.includes(pageId));
if (!checkedPageIds.length || irrelevantPageIds.length) {
hideDependentElement(dependentElement);
checkedPageIds.push(~~page.value);
}
});
- const irrelevantPageIds = checkedPageIds.filter((pageId) => pageIds.includes(pageId));
+ const irrelevantPageIds = checkedPageIds.filter((pageId) => !pageIds.includes(pageId));
if (!checkedPageIds.length || irrelevantPageIds.length) {
hideDependentElement(dependentElement);
}