const treeHasAgnosticContent = function()

in src/utils/gatherFilters.ts [19:33]


const treeHasAgnosticContent = function(tree): boolean {
  // If the page has content that would show on every filter, we want to add all possible filters to the list
  // ex: /guides
  if (!Array.isArray(tree)) {
    tree = [tree];
  }

  for (const node of tree) {
    if (typeof node !== "object") continue;
    if (!("props" in node)) continue;
    if (!("mdxType" in node.props)) continue;
    if (node.props.mdxType !== "Fragments") return true;
  }
  return false;
};