fix signed out home page

This commit is contained in:
Connor Turland 2017-03-12 12:35:52 -04:00
parent 0741743660
commit 9f2a61ce32

View file

@ -46,6 +46,12 @@ const ReactApp = {
// TODO: also handle page title updates // TODO: also handle page title updates
switch (this.state.location.pathname.split('/')[1]) { switch (this.state.location.pathname.split('/')[1]) {
case '': case '':
if (Active.Mapper) $('#yield').hide()
ExploreMaps.updateFromPath(this.state.location.pathname)
self.mapId = null
Active.Map = null
Active.Topic = null
break
case 'explore': case 'explore':
$('#yield').hide() $('#yield').hide()
ExploreMaps.updateFromPath(this.state.location.pathname) ExploreMaps.updateFromPath(this.state.location.pathname)