diff options
Diffstat (limited to 'webapp/root.jsx')
-rw-r--r-- | webapp/root.jsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webapp/root.jsx b/webapp/root.jsx index 417a13659..c88b0a7b3 100644 --- a/webapp/root.jsx +++ b/webapp/root.jsx @@ -180,6 +180,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); } |