fix: check if channels exist before checking length
This commit is contained in:
parent
19289bd9a7
commit
6410790bb1
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ class ChannelSection extends React.PureComponent<Props, State> {
|
|||
|
||||
componentDidMount() {
|
||||
const { channels = [], fetchChannelListMine, fetchingChannels } = this.props;
|
||||
console.log('p', this.props);
|
||||
if (!channels.length && !fetchingChannels) {
|
||||
fetchChannelListMine();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue