We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a832e commit f413b18Copy full SHA for f413b18
packages/core/src/api/nodeConversions/nodeToBlock.ts
@@ -112,13 +112,13 @@ export function contentNodeToTableContent<
112
});
113
114
for (let i = 0; i < headerMatrix.length; i++) {
115
- if (headerMatrix[i].every((isHeader) => isHeader)) {
+ if (headerMatrix[i]?.every((isHeader) => isHeader)) {
116
ret.headerRows = (ret.headerRows ?? 0) + 1;
117
}
118
119
120
for (let i = 0; i < headerMatrix[0]?.length; i++) {
121
- if (headerMatrix.every((row) => row[i])) {
+ if (headerMatrix?.every((row) => row[i])) {
122
ret.headerCols = (ret.headerCols ?? 0) + 1;
123
124
0 commit comments