Skip to content

Commit 7a468fb

Browse files
committed
fix: array boundaries
1 parent 9deb3a7 commit 7a468fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/site/util/table.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export default function remarkTableTitles() {
2424
row.children.forEach((cell, idx) => {
2525
cell.data ??= {};
2626

27+
if (idx > headerLabels.length) {
28+
return;
29+
}
30+
2731
cell.data.hProperties = {
2832
'data-label': headerLabels[idx],
2933
};

0 commit comments

Comments
 (0)