-
Notifications
You must be signed in to change notification settings - Fork 1
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
Keep organization name when changing from indv -> organization #1711
Conversation
dhaselhan
commented
May 23, 2024
- Also fixed a bug where the corporate summary was not getting deleted
* Also fixed a bug where the corporate summary was not getting deleted
existingOwner.corporateSummaryUuid = null; | ||
} | ||
|
||
existingOwner.corporateSummaryUuid = | ||
updateDto.corporateSummaryUuid !== undefined | ||
? updateDto.corporateSummaryUuid | ||
: existingOwner.corporateSummaryUuid; | ||
//Attach new one | ||
if ( | ||
updateDto.corporateSummaryUuid && | ||
updateDto.corporateSummaryUuid !== existingOwner.corporateSummaryUuid |
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.
Wouldn't the previous if
block change existingOwner.corporateSummaryUuid
to be null
, so this will always be true
? Is it intentional to mutate it before this condition?
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.
Had call with Sandra to explain
existingOwner.corporateSummaryUuid = null; | ||
} | ||
|
||
existingOwner.corporateSummaryUuid = | ||
updateDto.corporateSummaryUuid !== undefined | ||
? updateDto.corporateSummaryUuid | ||
: existingOwner.corporateSummaryUuid; | ||
//Attach new one | ||
if ( | ||
updateDto.corporateSummaryUuid && | ||
updateDto.corporateSummaryUuid !== existingOwner.corporateSummaryUuid |
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.
Same thing for NOI
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.
LGTM 👍