Skip to content

Commit

Permalink
invalidated DS should be removed from the list of DS to be invalidated
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Block <[email protected]>
  • Loading branch information
blomark committed Oct 1, 2021
1 parent 8cb7c35 commit 9a3d886
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,12 @@ private long getAffectedAutoAssignmentsByDSInvalidation(final ProxyDistributionS
private List<ProxyDistributionSet> getDistributionSetsForInvalidation(final ProxyDistributionSet clickedItem) {
final List<ProxyDistributionSet> selectedItems = Lists.newArrayList(grid.getSelectedItems());

// only clicked item should be deleted if it is not part of the
// selection
if (selectedItems.contains(clickedItem)) {
return selectedItems;
// consider only valid DS for invalidation
return selectedItems.stream().filter(ProxyDistributionSet::getIsValid).collect(Collectors.toList());
} else {
// only clicked item should be invalidated if it is not part of the
// selection
grid.deselectAll();
grid.select(clickedItem);

Expand Down

0 comments on commit 9a3d886

Please sign in to comment.