Skip to content

Commit

Permalink
Update VirtualizedList.js (facebook#1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi authored Aug 31, 2022
1 parent f4e6e18 commit 40574cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
(this.props.initialScrollIndex || 0) +
initialNumToRenderOrDefault(this.props.initialNumToRender),
) - 1,
selectedRowIndex: this.props.initialSelectedIndex || -1, // TODO(macOS GH#774)
selectedRowIndex: this.props.initialSelectedIndex ?? -1, // TODO(macOS GH#774)
};

if (this._isNestedWithSameOrientation()) {
Expand Down

0 comments on commit 40574cb

Please sign in to comment.