Skip to content

Commit

Permalink
fixes Actions.reset when getParent returns null (#3245)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillkroeteTTS authored and aksonov committed Sep 6, 2018
1 parent ced8a21 commit ad236fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/navigationStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -919,11 +919,11 @@ class NavigationStore {

reset = (routeName, data) => {
const params = filterParam(data);
const { key } = getParent(this.state, routeName);
const parent = getParent(this.state, routeName);
this.dispatch(
StackActions.reset({
index: 0,
key,
key: parent ? parent.key : null,
actions: [
NavigationActions.navigate({
routeName,
Expand Down

0 comments on commit ad236fe

Please sign in to comment.