Don't call history.back when there is no previous history
This commit is contained in:
parent
ee1de52156
commit
a76ac95f7c
1 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,8 @@ export function doChangePath(path) {
|
|||
|
||||
export function doHistoryBack() {
|
||||
return function(dispatch, getState) {
|
||||
if (!history.state) return;
|
||||
|
||||
history.back();
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue