-
Notifications
You must be signed in to change notification settings - Fork 49
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
19774 Fixed null officer email schema error #651
Conversation
- delete officer email if it's null
*/ | ||
fixNullAddressType (orgPeople: OrgPersonIF[]): OrgPersonIF[] { | ||
return orgPeople.map(p => { | ||
if (p.deliveryAddress?.addressType === null) delete p.deliveryAddress.addressType | ||
if (p.mailingAddress?.addressType === null) delete p.mailingAddress.addressType | ||
if (p.officer?.email === null) delete p.officer.email |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Party schema shows this:
JSON schema reference shows this (so I don't have to delete email if it's an empty string):
/gcbrun |
Temporary Url for review: https://business-create-dev--pr-651-pp38jdpg.web.app SB says, try this: https://business-create-dev--pr-651-pp38jdpg.web.app/amalg-short-review-confirm?id=TNVSuDNaw6&accountid=2288 |
- delete officer email if it's null Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>
Issue #: bcgov/entity#19774
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).