Skip to content

Commit

Permalink
fix(delete) Fix removing completed/verified forms references (#11172)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscollins3456 authored Aug 15, 2024
1 parent b447306 commit d81161e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -729,11 +729,11 @@ private MetadataChangeProposal updateFormsAspect(
.collect(Collectors.toList());
List<FormAssociation> completedForms =
formsAspect.getCompletedForms().stream()
.filter(completedForm -> completedForm.getUrn() != deletedUrn)
.filter(completedForm -> !completedForm.getUrn().equals(deletedUrn))
.collect(Collectors.toList());
final List<FormVerificationAssociation> verifications =
formsAspect.getVerifications().stream()
.filter(verification -> verification.getForm() != deletedUrn)
.filter(verification -> !verification.getForm().equals(deletedUrn))
.collect(Collectors.toList());

updatedAspect.get().setIncompleteForms(new FormAssociationArray(incompleteForms));
Expand Down

0 comments on commit d81161e

Please sign in to comment.