Skip to content

Commit b55ead3

Browse files
Pavlo AksonovPavlo Aksonov
Pavlo Aksonov
authored and
Pavlo Aksonov
committed
fix currentRoute for pop
1 parent e2f4ce1 commit b55ead3

File tree

3 files changed

+47
-35
lines changed

3 files changed

+47
-35
lines changed

.idea/workspace.xml

Lines changed: 45 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@
4242
],
4343
"name": "react-native-redux-router",
4444
"optionalDependencies": {},
45-
"version": "1.0.2"
45+
"version": "1.0.3"
4646
}

reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function reducer(state = { routes: [], currentRoute: null}, actio
4848
return {
4949
mode: DISMISS,
5050
routes: [...state.routes.slice(0, state.routes.length - 1)],
51-
currentRoute: state.routes[state.routes[state.routes.length - 2]]
51+
currentRoute: state.routes[state.routes.length - 2]
5252
};
5353
case RESET:
5454
return {

0 commit comments

Comments
 (0)