Skip to content

Commit

Permalink
fix lack of optional chaining (#16807)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark7p authored Nov 22, 2024
1 parent d82247e commit cb341b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/scroller/scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ export class Scroller implements OnInit, AfterContentInit, AfterViewChecked, OnD
setProp('height', numItems, this._itemSize[0]);
setProp('width', this._columns?.length || this._items[1]?.length, this._itemSize[1]);
} else {
this.horizontal ? setProp('width', this._columns.length || this._items.length, this._itemSize) : setProp('height', numItems, this._itemSize);
this.horizontal ? setProp('width', this._columns?.length || this._items.length, this._itemSize) : setProp('height', numItems, this._itemSize);
}
}
}
Expand Down

0 comments on commit cb341b8

Please sign in to comment.