Merge pull request #4011 from lbryio/fix-channelSelect-test

fix cold reload on channel select
This commit is contained in:
jessopb 2020-04-17 08:53:03 -04:00 committed by GitHub
commit 5edf3de859
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 });
} }
} }