Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TypeError: Cannot read properties of undefined (reading 'id') bug #493

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

Alwinator
Copy link
Contributor

I have encountered the situation that itemMetadata is undefined. My project crashed with the following exception. However, my tiny fix solves the problem. Unfortunately, I was not able to reproduce the bug outside of my project. However,
it would be great if you could merge my bug fix.

[Nest] 78135 - 07/13/2022, 6:30:58 PM ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'id')

TypeError: Cannot read properties of undefined (reading 'id')
    at serializeEntity (/home/alwin/WebStormsProjects/project/node_modules/@automapper/mikro/index.cjs:20:37)
    at serializeEntity (/home/alwin/WebStormsProjects/project/node_modules/@automapper/mikro/index.cjs:39:19)
    at Object.mergedOptions.preMap (/home/alwin/WebStormsProjects/project/node_modules/@automapper/mikro/index.cjs:59:14)
    at Proxy.<anonymous> (/home/alwin/WebStormsProjects/project/node_modules/@automapper/core/index.cjs:690:35)
    at Array.map (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@nartc nartc merged commit 4fe4e37 into nartc:main Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants