Don't call history.back when there is no previous history

This commit is contained in:
6ea86b96 2017-06-25 14:08:29 +07:00
parent ee1de52156
commit a76ac95f7c
No known key found for this signature in database
GPG key ID: B282D183E4931E8F

View file

@ -61,6 +61,8 @@ export function doChangePath(path) {
export function doHistoryBack() {
return function(dispatch, getState) {
if (!history.state) return;
history.back();
};
}