Merge pull request #283 from lbryio/no-history
Don't call history.back when there is no previous history
This commit is contained in:
commit
d072dabead
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