mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-27 23:41:29 +00:00
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() {
|
export function doHistoryBack() {
|
||||||
return function(dispatch, getState) {
|
return function(dispatch, getState) {
|
||||||
|
if (!history.state) return;
|
||||||
|
|
||||||
history.back();
|
history.back();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue