interconnect not undefined
This commit is contained in:
parent
57c8c01cb3
commit
224fbd105e
2 changed files with 4 additions and 2 deletions
|
@ -21,7 +21,9 @@ export const toc = [
|
||||||
id: "composite",
|
id: "composite",
|
||||||
level: 2,
|
level: 2,
|
||||||
},
|
},
|
||||||
...Object.values(groupedMetadata(Metadata).interconnects).map(
|
...Object.values(groupedMetadata(Metadata).interconnects).filter(
|
||||||
|
(ic) => ic.interconnect !== undefined
|
||||||
|
).map(
|
||||||
({ interconnect }) => ({
|
({ interconnect }) => ({
|
||||||
value: `${interconnect.name} Interconnect`,
|
value: `${interconnect.name} Interconnect`,
|
||||||
id: interconnect.id,
|
id: interconnect.id,
|
||||||
|
|
|
@ -41,7 +41,7 @@ function groupedShield(agg: GroupedMetadata, shield: Shield) {
|
||||||
ic.shields.push(shield);
|
ic.shields.push(shield);
|
||||||
agg.interconnects[id] = ic;
|
agg.interconnects[id] = ic;
|
||||||
});
|
});
|
||||||
shield.exposes.forEach((id) => {
|
shield.exposes?.forEach((id) => {
|
||||||
let ic = agg.interconnects[id] ?? { boards: [], shields: [] };
|
let ic = agg.interconnects[id] ?? { boards: [], shields: [] };
|
||||||
ic.shields.push(shield);
|
ic.shields.push(shield);
|
||||||
agg.interconnects[id] = ic;
|
agg.interconnects[id] = ic;
|
||||||
|
|
Loading…
Add table
Reference in a new issue