Skip to content

notes.map is not a function #49

Open
@Jawad-Ali2

Description

@Jawad-Ali2

The code works fine till video#71. But changes in noteState.js
headers: {
'Content-Type': 'application/json',
"auth-token": localStorage.getItem('token')
}
caused this issue. If I remove the localStorage line and write the previous line (the auth token we used on the endpoint) the app works fine.
Kindly, someone help me with this issue, I've been facing for 1 week now. Thanks.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions