From 9f2a61ce32146a7328006b9f761a31c34de897a1 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sun, 12 Mar 2017 12:35:52 -0400 Subject: [PATCH] fix signed out home page --- frontend/src/Metamaps/GlobalUI/ReactApp.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/Metamaps/GlobalUI/ReactApp.js b/frontend/src/Metamaps/GlobalUI/ReactApp.js index cf223cf7..a789d846 100644 --- a/frontend/src/Metamaps/GlobalUI/ReactApp.js +++ b/frontend/src/Metamaps/GlobalUI/ReactApp.js @@ -46,6 +46,12 @@ const ReactApp = { // TODO: also handle page title updates switch (this.state.location.pathname.split('/')[1]) { case '': + if (Active.Mapper) $('#yield').hide() + ExploreMaps.updateFromPath(this.state.location.pathname) + self.mapId = null + Active.Map = null + Active.Topic = null + break case 'explore': $('#yield').hide() ExploreMaps.updateFromPath(this.state.location.pathname)