Skip to content

Commit

Permalink
Correctly update location attributes in Target Editor
Browse files Browse the repository at this point in the history
These were completely ignored before
  • Loading branch information
tivervac committed Apr 26, 2024
1 parent 00c9caf commit d2ef4a6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,11 @@ private void updateIUContainerElements(Element containersElement, List<Element>
}
}

// Use a mock comparator, we only want to use the
// "elementAttributesComparator" also used in updateElements
TargetDefinitionDocumentTools.updateElements(containersElement, oldContainers, newContainers,
(Element e1, Element e2) -> 0);

for (Entry<String, List<Element>> entry : oldContainersByRepo.entrySet()) {
entry.getValue().forEach(TargetDefinitionDocumentTools::removeChildAndWhitespace);
}
Expand Down

0 comments on commit d2ef4a6

Please sign in to comment.