tharindu-dm / Kamper

Rapid Application Development using MERN Stack
2 stars 0 forks source link

editing form #10

Closed tharindu-dm closed 4 weeks ago

tharindu-dm commented 1 month ago

something related to this:

app.get("/account/places/:id", async (req, res) => {
  const { id } = req.params;
  res.json(await Place.findById(id));
});

and PhotosUploader

causing this error:

ERROR Cannot read properties of undefined (reading 'length') TypeError: Cannot read properties of undefined (reading 'length') at PhotosUploader (http://localhost:3000/Kamper/static/js/bundle.js:736:30) at renderWithHooks (http://localhost:3000/Kamper/static/js/bundle.js:26491:22) at updateFunctionComponent (http://localhost:3000/Kamper/static/js/bundle.js:30058:24) at beginWork (http://localhost:3000/Kamper/static/js/bundle.js:31777:20) at HTMLUnknownElement.callCallback (http://localhost:3000/Kamper/static/js/bundle.js:16747:18) at Object.invokeGuardedCallbackDev (http://localhost:3000/Kamper/static/js/bundle.js:16791:20) at invokeGuardedCallback (http://localhost:3000/Kamper/static/js/bundle.js:16848:35) at beginWork$1 (http://localhost:3000/Kamper/static/js/bundle.js:36746:11) at performUnitOfWork (http://localhost:3000/Kamper/static/js/bundle.js:35994:16) at workLoopSync (http://localhost:3000/Kamper/static/js/bundle.js:35917:9)