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

Keep organization name when changing from indv -> organization #1711

Merged
merged 1 commit into from
May 27, 2024

Conversation

dhaselhan
Copy link
Collaborator

  • Also fixed a bug where the corporate summary was not getting deleted

* Also fixed a bug where the corporate summary was not getting deleted
Comment on lines +151 to +157
existingOwner.corporateSummaryUuid = null;
}

existingOwner.corporateSummaryUuid =
updateDto.corporateSummaryUuid !== undefined
? updateDto.corporateSummaryUuid
: existingOwner.corporateSummaryUuid;
//Attach new one
if (
updateDto.corporateSummaryUuid &&
updateDto.corporateSummaryUuid !== existingOwner.corporateSummaryUuid
Copy link
Contributor

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?

Copy link
Collaborator Author

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

Comment on lines +166 to +172
existingOwner.corporateSummaryUuid = null;
}

existingOwner.corporateSummaryUuid =
updateDto.corporateSummaryUuid !== undefined
? updateDto.corporateSummaryUuid
: existingOwner.corporateSummaryUuid;
//Attach new one
if (
updateDto.corporateSummaryUuid &&
updateDto.corporateSummaryUuid !== existingOwner.corporateSummaryUuid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing for NOI

Copy link
Contributor

@sandratoh sandratoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@dhaselhan dhaselhan merged commit 54c4645 into develop May 27, 2024
3 checks passed
@dhaselhan dhaselhan deleted the feature/ALCS-1922 branch May 27, 2024 20:43
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