react-e-commerce-website
react-e-commerce-website copied to clipboard
Error in
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 (
That is fetched from the URL, please double check your code if you're passing the URL params properly, it works from my side
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.