Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 402: | Line 402: | ||
// If filterState has a category but subfunctions array is empty, we only care about the category. | // If filterState has a category but subfunctions array is empty, we only care about the category. | ||
const emptyCategories = Array.from(filterState.functions) | const emptyCategories = Array.from(filterState.functions) | ||
.filter(([key, subs]) => subs.length === 0) | |||
.map(([key, subs]) => key); | |||
console.log(emptyCategories) | console.log(emptyCategories) | ||
return true | return true |
Revision as of 17:11, 18 November 2022
Development verstion of the DCT List.
Not ready for production!