From febdd8a8bd26466509d03fe2d95aff97e7631c2f Mon Sep 17 00:00:00 2001 From: Samy Pesse Date: Sun, 4 Dec 2016 21:18:45 +0100 Subject: [PATCH] Prevent null as location in history --- packages/gitbook-core/src/reducers/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gitbook-core/src/reducers/history.js b/packages/gitbook-core/src/reducers/history.js index 8d2a2fb22..be8fe42f6 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?