Closed Charles-antoine closed 5 years ago
I'm seeing this also. Did you get a chance to investigate?
Hey, sorry you're having issues. From what I can tell this could be happening because the list of pages hasn't yet been pulled from the WP API. I'm not sure when I'll have a chance to check it out but I'll have a look.
Thanks, @EvanAgee. I'll be doing the same also, will update with my findings.
The array may be empty when filter is attempted. Try first checking array length with an if statement, something like:
if (state.all.length) return state.all.find(page => page.id === id)
Hi, I'm trying to use your theme starter but i'm confronted to this error: