diff options
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index b94e6e813..2406b65e3 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -1030,7 +1030,7 @@ $.extend(fixmystreet.set_up, { // rather than the 'fake history' replaceState call that sets the // initial state, because the map hasn't been loaded at that point. // Also, filters might be changed before a report click. - if ('state' in history && !history.state.mapState) { + if ('state' in history && history.state && !history.state.mapState) { history.state.mapState = around_map_state; // NB can't actually modify current state directly, needs a // call to replaceState() |