Skip to content

Commit

Permalink
fix: test property 'children' of null
Browse files Browse the repository at this point in the history
  • Loading branch information
giscafer committed Apr 14, 2020
1 parent 3774053 commit 24d9b52
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export class LedgeTableStepComponent implements OnInit, AfterViewInit {
const firstRowEl = this.elementRef.nativeElement.querySelector(
'.first-row'
);
if (!firstRowEl) {
return;
}
const arr = [];
const totalWidth = Array.from(firstRowEl.children).reduce(
(total: number, c, index) => {
Expand Down

0 comments on commit 24d9b52

Please sign in to comment.