summaryrefslogtreecommitdiffstats
path: root/webapp/routes/route_team.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/routes/route_team.jsx')
-rw-r--r--webapp/routes/route_team.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/webapp/routes/route_team.jsx b/webapp/routes/route_team.jsx
index 27817710f..15217bfd2 100644
--- a/webapp/routes/route_team.jsx
+++ b/webapp/routes/route_team.jsx
@@ -12,7 +12,6 @@ import Constants from 'utils/constants.jsx';
const ActionTypes = Constants.ActionTypes;
import * as AsyncClient from 'utils/async_client.jsx';
import Client from 'client/web_client.jsx';
-import * as Utils from 'utils/utils.jsx';
import ChannelStore from 'stores/channel_store.jsx';
import emojiRoute from 'routes/route_emoji.jsx';
@@ -57,7 +56,7 @@ function doChannelChange(state, replace, callback) {
function preNeedsTeam(nextState, replace, callback) {
// First check to make sure you're in the current team
// for the current url.
- var teamName = Utils.getTeamNameFromUrl();
+ const teamName = nextState.params.team;
var team = TeamStore.getByName(teamName);
const oldTeamId = TeamStore.getCurrentId();