community-plugins
community-plugins copied to clipboard
🐛 feedback: Router error with guest user
Plugin Name
feedback
📜 Description
The router throws an exception when using the feedback plugin with a guest user or user without an email address
👍 Expected behavior
It should not throw an error
👎 Actual Behavior with Screenshots
[0] 2024-10-09T05:29:58.426Z backstage error Unhandled rejection Cannot read properties of undefined (reading 'spec') type=unhandledRejection stack=TypeError: Cannot read properties of undefined (reading 'spec')
[0] at <anonymous> (/node_modules/@backstage-community/plugin-feedback-backend/src/service/router.ts:152:11)
[0] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
👟 Reproduction steps
- Add feedback plugin
- Login as guest
- Send a feedback
📃 Provide the context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
- [X] I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- [X] I have read the Code of Conduct
Are you willing to submit PR?
None