jackow98 / Besterbikes

Year 3 Computing Project
0 stars 1 forks source link

Bike Accesssories error #44

Open jackow98 opened 5 years ago

jackow98 commented 5 years ago

Unhandled Rejection (TypeError): Cannot read property 'accessoriesArray' of undefined _callee$ C:/Users/Owner/WebstormProjects/Besterbikes/src/firebase/accessories.js:37 34 | const stationDocument = stationsCollection.doc(stationID); 35 | const stationDoc = await stationDocument.get(); 36 | const stationData = stationDoc.data();

37 | const accessoriesArray = stationData['bikes']['accessories']['accessoriesArray']; | ^ 38 | 39 | 40 | accessoriesDocs.forEach(accessoryDoc => {