summaryrefslogtreecommitdiffstats
path: root/web/react/pages
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/pages')
-rw-r--r--web/react/pages/home.jsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/react/pages/home.jsx b/web/react/pages/home.jsx
index 5f0fa9d96..a59f2afd0 100644
--- a/web/react/pages/home.jsx
+++ b/web/react/pages/home.jsx
@@ -2,14 +2,15 @@
// 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');
-function setupHomePage(props) {
+function setupHomePage() {
var last = ChannelStore.getLastVisitedName();
if (last == null || last.length === 0) {
- window.location = props.TeamURL + '/channels/' + Constants.DEFAULT_CHANNEL;
+ window.location = TeamStore.getCurrentTeamUrl() + '/channels/' + Constants.DEFAULT_CHANNEL;
} else {
- window.location = props.TeamURL + '/channels/' + last;
+ window.location = TeamStore.getCurrentTeamUrl() + '/channels/' + last;
}
}