Open mikem20 opened 4 years ago
endDateTime is not a required field, but EventEdit assumes endDateTime exists. code. should check for existence of eventTix.endDateTime.slice
TypeError: Cannot read property 'slice' of undefined loadEventInfo src/EventCreation/EventEdit.js:248 245 | tempDescription.startTime = eventTix.startDateTime.slice(11,19); 246 | console.log("tempDescription.startTime: ", tempDescription.startTime) 247 |
248 | tempDescription.endTime = eventTix.endDateTime.slice(11,19); | ^ 249 | console.log("tempDescription.endTime: ", tempDescription.endTime) 250 | 251 | console.log("eventTix.startDateTime: ", eventTix.startDateTime); View compiled (anonymous function) src/EventCreation/EventEdit.js:181 178 | vendorInfo.id = tempUser.user._id; 179 | if (localStorage.getItem(editEvent) !== null) { 180 | let tempEvent = JSON.parse(localStorage.getItem("editEvent")); 181 | loadEventInfo(tempEvent); | ^ 182 | console.log("found a valid event to edit") 183 | } 184 | else { View compiled
editEvent
endDateTime is not a required field, but EventEdit assumes endDateTime exists. code. should check for existence of eventTix.endDateTime.slice
TypeError: Cannot read property 'slice' of undefined loadEventInfo src/EventCreation/EventEdit.js:248 245 | tempDescription.startTime = eventTix.startDateTime.slice(11,19); 246 | console.log("tempDescription.startTime: ", tempDescription.startTime) 247 |