This repository was archived by the owner on May 13, 2026. It is now read-only.
Repository navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello, I'm hoping somebody can help me with this error I keep getting while trying to implement a line chart:
Uncaught TypeError: Cannot read properties of undefined (reading 'some'). I have a page where I'm dispatching the custom hook to get the data from API, once I have it I conditionally render the chart which has the data as a prop - see more below.I can see the data is being passed correctly to the chart component; however I keep getting the undefined error and it stems from the function below. What am I missing?! Any advice or tips would be greatly appreciated!
This is the main page:
Chart component:
All reactions