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

Error in #10

Open
Manoj-29 opened this issue Jan 11, 2021 · 2 comments
Open

Error in #10

Manoj-29 opened this issue Jan 11, 2021 · 2 comments

Comments

@Manoj-29
Copy link

Manoj-29 commented Jan 11, 2021

TypeError: collectionId is undefined
CollectionPage
C:/Users/Lenovo/Desktop/proje/src/Pages/collection/collection.component.jsx:7

4 | import CollectionItem from '../../components/collection-item/collection-item.component'
5 | import './collection.styles.scss'
6 |

7 | function CollectionPage({ match, collection }) {
8 | const { title, items } = collection

9 | console.log(match.params)
10 | return (

@AdityaKumawat97
Copy link
Owner

That is fetched from the URL, please double check your code if you're passing the URL params properly, it works from my side

@harshrathod5341
Copy link

Collection id will be different, as firebase automatically generates id, you cannot use the same collection id. It will be unique for all the users and all the collections.

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

3 participants