Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling .slice throws error: "Cannot read properties of undefined (reading 'slice')" Even if defined. #65

Open
ivanjeremic opened this issue Dec 8, 2021 · 1 comment

Comments

@ivanjeremic
Copy link

ivanjeremic commented Dec 8, 2021

Doing {#each $queryResult.data.slice(0, 9) as item} throws error: Cannot read properties of undefined (reading 'slice') Even if defined.

This is impossible because I have all my checks in my markup, so it renders the each only when there is data, at least I know for fact that this could never happen in react js, to have it undefined at his point, so this seems to me like a bug or am I missing something?

@SomaticIT
Copy link
Collaborator

Hello,

Can you provide a minimal reproduction code?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants