only fetch channels when categoryLink is defined
This commit is contained in:
parent
0cd5ef9ab4
commit
30da19e01b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class CategoryList extends React.PureComponent<Props, State> {
|
|||
|
||||
componentDidMount() {
|
||||
const { fetching, categoryLink, fetchChannel } = this.props;
|
||||
if (!fetching) {
|
||||
if (!fetching && categoryLink) {
|
||||
fetchChannel(categoryLink);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue