summaryrefslogtreecommitdiffstats
path: root/webapp/routes
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/routes')
-rw-r--r--webapp/routes/route_team.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/routes/route_team.jsx b/webapp/routes/route_team.jsx
index 44a8c1eb6..b4d9e068a 100644
--- a/webapp/routes/route_team.jsx
+++ b/webapp/routes/route_team.jsx
@@ -34,7 +34,7 @@ function doChannelChange(state, replace, callback) {
} else {
channel = ChannelStore.getByName(state.params.channel);
- if (channel.type === Constants.DM_CHANNEL) {
+ if (channel && channel.type === Constants.DM_CHANNEL) {
loadNewDMIfNeeded(Utils.getUserIdFromChannelName(channel));
}