Skip to content

Commit

Permalink
Merge branch 'master' of github.com:inProgress-team/react-native-mete…
Browse files Browse the repository at this point in the history
…or-router-flux
  • Loading branch information
Théo mathieu committed Apr 28, 2016
2 parents 4f98c52 + dbb52db commit b67f5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meteorSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = (getMeteorData) => {
const selected = navState.children.filter(el=>el.sceneKey==selectedKey) || console.error("key="+selectedKey+" doesn't exist");
const navigationState = selected[0] || console.error("Cannot find scene with key="+selectedKey);

if (navigationState.key != navState.children[navState.index].key){
if (!navigationState || navigationState.key != navState.children[navState.index].key){
Actions[selectedKey]();
}

Expand Down

0 comments on commit b67f5dd

Please sign in to comment.