From 6410790bb18fd5660084e3074e443ec2b5a79c00 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 23 Sep 2019 23:20:24 -0400 Subject: [PATCH] fix: check if channels exist before checking length --- src/ui/component/selectChannel/view.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/component/selectChannel/view.jsx b/src/ui/component/selectChannel/view.jsx index dec2e2491..39d566045 100644 --- a/src/ui/component/selectChannel/view.jsx +++ b/src/ui/component/selectChannel/view.jsx @@ -48,6 +48,7 @@ class ChannelSection extends React.PureComponent { componentDidMount() { const { channels = [], fetchChannelListMine, fetchingChannels } = this.props; + console.log('p', this.props); if (!channels.length && !fetchingChannels) { fetchChannelListMine(); }