diff options
Diffstat (limited to 'web/react/pages/home.jsx')
-rw-r--r-- | web/react/pages/home.jsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/web/react/pages/home.jsx b/web/react/pages/home.jsx index a59f2afd0..ff81c4994 100644 --- a/web/react/pages/home.jsx +++ b/web/react/pages/home.jsx @@ -1,12 +1,11 @@ // Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. -var ChannelStore = require('../stores/channel_store.jsx'); -var TeamStore = require('../stores/team_store.jsx'); -var Constants = require('../utils/constants.jsx'); +import TeamStore from '../stores/team_store.jsx'; +import Constants from '../utils/constants.jsx'; function setupHomePage() { - var last = ChannelStore.getLastVisitedName(); + var last = null; if (last == null || last.length === 0) { window.location = TeamStore.getCurrentTeamUrl() + '/channels/' + Constants.DEFAULT_CHANNEL; } else { |