fix cold reload on channel select

This commit is contained in:
jessop 2020-04-17 08:47:59 -04:00
parent 51df90fc0c
commit d33b1c49db

View file

@ -47,8 +47,8 @@ class ChannelSelection extends React.PureComponent<Props, State> {
} }
componentDidUpdate() { componentDidUpdate() {
const { channels } = this.props; const { channels, fetchingChannels } = this.props;
if (!channels) { if (!fetchingChannels && !channels) {
this.setState({ addingChannel: true }); this.setState({ addingChannel: true });
} }
} }