Skip to content

Commit

Permalink
fix: ignore missing ids
Browse files Browse the repository at this point in the history
  • Loading branch information
EHadoux committed Jan 10, 2024
1 parent 101b4c0 commit 33a413e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Table/Table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export class Table {
for (const rs of block.Relationships) {
if (rs.Type === 'CHILD') {
for (const id of rs.Ids) {
if (blockMap.get(id)?.BlockType !== 'CELL') {
continue;
}
const cell = new Cell(blockMap.get(id) as CellBlock, blockMap);
if (cell.rowIndex > ri) {
this.rows.push(row);
Expand Down

0 comments on commit 33a413e

Please sign in to comment.