Skip to content

Commit 62c49d2

Browse files
committed
[changed] Change Navigation to return the result of goBack()
Upgrade path: The goBack function now returns true (on successful back) or false (no react-router history to navigate back to), previously the return from goBack was always undefined.
1 parent d69f1c1 commit 62c49d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/Navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ var Navigation = {
6464
* Transitions to the previous URL.
6565
*/
6666
goBack: function () {
67-
this.context.goBack();
67+
return this.context.goBack();
6868
}
6969

7070
};

0 commit comments

Comments
 (0)