Skip to content

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

@ivanjeremic

Description

@ivanjeremic

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions