diff --git a/docs/docs/hardware.mdx b/docs/docs/hardware.mdx index d2b6aa9d..929dbe0e 100644 --- a/docs/docs/hardware.mdx +++ b/docs/docs/hardware.mdx @@ -21,7 +21,9 @@ export const toc = [ id: "composite", level: 2, }, - ...Object.values(groupedMetadata(Metadata).interconnects).map( + ...Object.values(groupedMetadata(Metadata).interconnects).filter( + (ic) => ic.interconnect !== undefined + ).map( ({ interconnect }) => ({ value: `${interconnect.name} Interconnect`, id: interconnect.id, diff --git a/docs/src/components/hardware-utils.ts b/docs/src/components/hardware-utils.ts index c2f35893..76452dc3 100644 --- a/docs/src/components/hardware-utils.ts +++ b/docs/src/components/hardware-utils.ts @@ -41,7 +41,7 @@ function groupedShield(agg: GroupedMetadata, shield: Shield) { ic.shields.push(shield); agg.interconnects[id] = ic; }); - shield.exposes.forEach((id) => { + shield.exposes?.forEach((id) => { let ic = agg.interconnects[id] ?? { boards: [], shields: [] }; ic.shields.push(shield); agg.interconnects[id] = ic;