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

Mapping object with null properties is not working #11

Closed
m-i-c-h-a-l opened this issue Dec 29, 2022 · 1 comment
Closed

Mapping object with null properties is not working #11

m-i-c-h-a-l opened this issue Dec 29, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@m-i-c-h-a-l
Copy link

Mapping an object containing a property with null value is not working. The error:

TypeError: Cannot convert undefined or null to object
at Function.entries ()
at Object.clean (/opt/microservices/node_modules/ts-mapstruct/dist/src/utils/utils.js:89:12)
at /opt/microservices/node_modules/ts-mapstruct/dist/src/utils/utils.js:94:21
at Array.forEach ()
at Object.clean (/opt/microservices/node_modules/ts-mapstruct/dist/src/utils/utils.js:89:28)
...

@ugoevola ugoevola self-assigned this Jan 11, 2023
@ugoevola ugoevola added the bug Something isn't working label Jan 11, 2023
@ugoevola
Copy link
Owner

thank you for your analysis, I correct that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants