diff --git a/src/components/ListExamples.astro b/src/components/ListExamples.astro index 325460b95f9a18..238f263931a95f 100644 --- a/src/components/ListExamples.astro +++ b/src/components/ListExamples.astro @@ -40,13 +40,11 @@ const filterValues: Record = {}; if (filters) { for (const filter of filters) { - const values = examples.flatMap((x) => { - if (filter in x.data) { - const value = x.data[filter]; + const values = examples.flatMap((entry) => { + if (filter === "head") return []; - if (typeof value === "string") { - return value; - } + if (filter in entry.data) { + return entry.data[filter]; } return [];