Skip to content

Commit

Permalink
fix(table): revert linting adjustment introducing change of behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
giamir committed Dec 2, 2022
1 parent 7397de0 commit 2e24070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ts/controllers/s-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function buildIndexOrGetCellSlot(
findCell?: HTMLTableCellElement
) {
const index = [];
let curRow = section.children[0];
let curRow: Element | null = section.children[0];

// the elements of these two arrays are synchronized; the first array contains table cell elements,
// the second one contains a number that indicates for how many more rows this elements will
Expand Down Expand Up @@ -253,7 +253,7 @@ function buildIndexOrGetCellSlot(
}
curSlot++;
}
if (curRow?.nextElementSibling) {
if (curRow) {
curRow = curRow.nextElementSibling;
}
}
Expand Down

0 comments on commit 2e24070

Please sign in to comment.