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

TypeError: nftList.filter is not a function #14

Open
jvick1 opened this issue Jul 24, 2022 · 5 comments
Open

TypeError: nftList.filter is not a function #14

jvick1 opened this issue Jul 24, 2022 · 5 comments

Comments

@jvick1
Copy link

jvick1 commented Jul 24, 2022

Having issues with Unhandled Runtime Error. TypeError: nftList.filter is not a function. See screenshot below. Any suggestions?

image

@jvick1
Copy link
Author

jvick1 commented Jul 24, 2022

this is for the paginate all NFTs repo

@louieogrady
Copy link

louieogrady commented Jul 27, 2022

I have the same issue here, seems that nftList is not the correct type?

@davidbeard741
Copy link

This is definitely an issue that needs to be addressed. Especially since this is supposed to be a gateway for early developers.

I believe the issue is that a basic JavaScript fundamental, .filter cannot be applied to an objects. However, I would need to double check this via a console check.

If this is the issue, change object into an array using Object.entries().

@muygur
Copy link

muygur commented Aug 20, 2022

hey, we have the same issue, please help us

@wooddyy-sol
Copy link

If I had to guess, this issue arises from this line.

const [nftList, setNftList] = useState(null);

try changing it to

const [nftList, setNftList] = useState([]);

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

5 participants