From 5f3111e8809ccc4fe32cc2958da5a47fd9c09bef Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 4 Apr 2016 11:09:59 -0400 Subject: Fxing some channel changing issues --- webapp/root.jsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'webapp/root.jsx') diff --git a/webapp/root.jsx b/webapp/root.jsx index da5980c33..10cc63643 100644 --- a/webapp/root.jsx +++ b/webapp/root.jsx @@ -197,6 +197,12 @@ function doChannelChange(state) { channel = JSON.parse(state.location.query.fakechannel); } else { channel = ChannelStore.getByName(state.params.channel); + if (!channel) { + channel = ChannelStore.getMoreByName(state.params.channel); + } + if (!channel) { + console.error('Unable to get channel to change to.'); //eslint-disable-line no-console + } } GlobalActions.emitChannelClickEvent(channel); } -- cgit v1.2.3-1-g7c22