fix cold reload on channel select
This commit is contained in:
parent
51df90fc0c
commit
d33b1c49db
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ class ChannelSelection extends React.PureComponent<Props, State> {
|
|||
}
|
||||
|
||||
componentDidUpdate() {
|
||||
const { channels } = this.props;
|
||||
if (!channels) {
|
||||
const { channels, fetchingChannels } = this.props;
|
||||
if (!fetchingChannels && !channels) {
|
||||
this.setState({ addingChannel: true });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue