Skip to content

Commit

Permalink
fix(Rest): component attachment deletion while updating externalIds
Browse files Browse the repository at this point in the history
Signed-off-by: Rudra Chopra <[email protected]>
  • Loading branch information
rudra-superrr authored and GMishx committed Nov 11, 2024
1 parent dcfdc9e commit 89e67b7
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,6 @@ public ResponseEntity<EntityModel<Component>> patchComponent(
attachments.add(restControllerHelper.convertToAttachment(attachmentDTO, user));
}
sw360Component.setAttachments(attachments);
} else {
sw360Component.setAttachments(null);
}
RequestStatus updateComponentStatus = componentService.updateComponent(sw360Component, user);
HalResource<Component> userHalResource = createHalComponent(sw360Component, user);
Expand Down

0 comments on commit 89e67b7

Please sign in to comment.