diff --git a/ui/component/selectChannel/view.jsx b/ui/component/selectChannel/view.jsx index 2191074c4..b608eda72 100644 --- a/ui/component/selectChannel/view.jsx +++ b/ui/component/selectChannel/view.jsx @@ -47,13 +47,15 @@ class ChannelSelection extends React.PureComponent { fetchChannelListMine(); } - const elem = document.getElementById(ID_FF_SELECT_CHANNEL); - // $FlowFixMe - if (elem && elem.value && elem.value !== channel) { - setTimeout(() => { - // $FlowFixMe - onChannelChange(elem.value); - }, 250); + if (channels && channels.length && !channels.find(chan => chan.name === channel)) { + const elem = document.getElementById(ID_FF_SELECT_CHANNEL); + // $FlowFixMe + if (elem && elem.value && elem.value !== channel) { + setTimeout(() => { + // $FlowFixMe + onChannelChange(elem.value); + }, 250); + } } }