actually fix what the last commit says

This commit is contained in:
Sean Yesmunt 2019-09-24 08:57:55 -04:00
parent 6410790bb1
commit e05b56f4a0

View file

@ -47,9 +47,8 @@ class ChannelSection extends React.PureComponent<Props, State> {
}
componentDidMount() {
const { channels = [], fetchChannelListMine, fetchingChannels } = this.props;
console.log('p', this.props);
if (!channels.length && !fetchingChannels) {
const { channels, fetchChannelListMine, fetchingChannels } = this.props;
if ((!channels || !channels.length) && !fetchingChannels) {
fetchChannelListMine();
}
}