mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Flow fix
This commit is contained in:
@@ -407,7 +407,7 @@ function reduceOwnersState(store: Store, state: State, action: Action): State {
|
||||
ownerStackIndex = ownerStack.length - 1;
|
||||
}
|
||||
}
|
||||
if (selectedElementID !== null) {
|
||||
if (selectedElementID !== null && _ownerFlatTree !== null) {
|
||||
// Mutation might have caused the index of this ID to shift.
|
||||
selectedElementIndex = _ownerFlatTree.indexOf(selectedElementID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user