Unexpected Application Error!

Cannot read properties of undefined (reading '_id')

TypeError: Cannot read properties of undefined (reading '_id')
    at MethodInvocation.<anonymous> (imports/api/users/user.methods.js:51:14)
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/app/.meteor/heroku_build/app/programs/server/app/app.js:40784:28)
    at _next (/app/.meteor/heroku_build/app/programs/server/app/app.js:40802:17)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)

💿 Hey developer 👋

You can provide a way better UX than this when your app throws errors by providing your own ErrorBoundary or errorElement prop on your route.