Skip to content
This repository was archived by the owner on Jun 10, 2022. It is now read-only.
This repository was archived by the owner on Jun 10, 2022. It is now read-only.

How to Fix the bug:" TypeError: channels is undefined in Subscriptions" #22

@wansuiye09

Description

@wansuiye09

TypeError: channels is undefined
Subscriptions
src/components/Subscriptions.js:44
41 | const {channels} = useSelector((state) => state.user.data);
42 |
43 | return (

44 |
| ^ 45 | {channels.length > 0 &&

Subscriptions

}
46 |
47 | {channels?.map((channel) => (

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions