© 2026 Hedgehog Software, LLC
const reducer = getContext("reducer"); let derived = []; if (enableGrouping) { const filters = filterBy[compendiumType]; const property = `system.${groupBy[compendiumType]}`; for (const filterValue of filters) { const dr = $reducer.derived.create(`${filterValue}`); console.log(dr); dr.filters.add((doc) => doc[property] === filterValue); derived.push(dr); } derived = derived; }
Join the Discord to ask follow-up questions and connect with the community
219 Members