From ad236fef0b7dfb06ec1e83b2445b0086c9b10a38 Mon Sep 17 00:00:00 2001 From: Tjark Smalla Date: Thu, 6 Sep 2018 13:35:09 +0200 Subject: [PATCH] fixes Actions.reset when getParent returns null (#3245) --- src/navigationStore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/navigationStore.js b/src/navigationStore.js index d0ad72a8b..9f98e3205 100644 --- a/src/navigationStore.js +++ b/src/navigationStore.js @@ -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,