actually fix what the last commit says
This commit is contained in:
parent
6410790bb1
commit
e05b56f4a0
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue