react-e-commerce-website icon indicating copy to clipboard operation
react-e-commerce-website copied to clipboard

Error in

Open Manoj-29 opened this issue 4 years ago • 2 comments

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 (

Manoj-29 avatar Jan 11 '21 17:01 Manoj-29

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

AdityaKumawat97 avatar Jan 14 '21 13:01 AdityaKumawat97

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.

harshrathod5341 avatar Nov 15 '22 13:11 harshrathod5341