Skip to content

Commit bff5f39

Browse files
secitrjavache
andcommitted
Update packages/virtualized-lists/Lists/VirtualizedList.js
Co-authored-by: Pieter De Baets <pieter.debaets@gmail.com>
1 parent 6728afa commit bff5f39

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎packages/virtualized-lists/Lists/VirtualizedList.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -814,10 +814,7 @@ class VirtualizedList extends StateSafePureComponent<
814814
const key = VirtualizedList._keyExtractor(item, ii, this.props);
815815

816816
this._indicesToKeys.set(ii, key);
817-
if (
818-
stickyIndicesFromProps != null &&
819-
stickyIndicesFromProps.has(ii + stickyOffset)
820-
) {
817+
if (stickyIndicesFromProps?.has(ii + stickyOffset)) {
821818
stickyHeaderIndices.push(cells.length);
822819
}
823820

0 commit comments

Comments
 (0)