diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-12-04 21:18:45 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-12-04 21:18:45 +0100 |
commit | febdd8a8bd26466509d03fe2d95aff97e7631c2f (patch) | |
tree | 2724a6eeb604d4e45c5640330bf6adbd63fbc662 | |
parent | b04724ae0bec18caeebc52c2b9c6a18f61d1cfc4 (diff) | |
download | gitbook-febdd8a8bd26466509d03fe2d95aff97e7631c2f.zip gitbook-febdd8a8bd26466509d03fe2d95aff97e7631c2f.tar.gz gitbook-febdd8a8bd26466509d03fe2d95aff97e7631c2f.tar.bz2 |
Prevent null as location in history
-rw-r--r-- | packages/gitbook-core/src/reducers/history.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/gitbook-core/src/reducers/history.js b/packages/gitbook-core/src/reducers/history.js index 8d2a2fb..be8fe42 100644 --- a/packages/gitbook-core/src/reducers/history.js +++ b/packages/gitbook-core/src/reducers/history.js @@ -7,7 +7,7 @@ const isServerSide = (typeof window === 'undefined'); const HistoryState = Record({ // Current location - location: null, + location: new Location(), // Are we loading a new page loading: Boolean(false), // Did we fail loading a page? |