Skip to content

Conversation

matt328
Copy link

@matt328 matt328 commented Nov 4, 2019

I think changing the parentId comparison here to include undefined will handle cases where the source data doesn't have the field present.

My data model for this entity is an interface with parentId defined like parentId?: string. I can either go through and make sure I check for undefined, and null them all out in my service layer, but patching this lib felt like a more holistic solution.

@matt328
Copy link
Author

matt328 commented Nov 4, 2019

Just realized PR #9 does exactly the same thing.

@matt328 matt328 closed this Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants