Skip to content

List of state not iterable #2455

Closed Answered by KuzonFyre
KuzonFyre asked this question in Bug report
Discussion options

You must be logged in to vote

Turns out it was an unrelated issue on when I parsed my json. The correct section is,

const project = await getProjectData(projectId)
            if (!project) return
            set({ projectId, projectName: project.name, projectDescription: project.description ?? "", elements: JSON.parse(!project.content && project.content !== "" ? project.content! : "[]") })

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KuzonFyre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant