unitSymbol for GroupItem (#4106)

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
This commit is contained in:
Mark Herwege 2024-03-10 10:07:52 +01:00 committed by GitHub
parent 38b73bf989
commit eeb69197c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,9 @@ public class EnrichedItemDTOMapper {
unitSymbol = numberItem.getUnitSymbol();
}
if (item instanceof GroupItem groupItem) {
if (groupItem.getBaseItem() instanceof NumberItem baseNumberItem) {
unitSymbol = baseNumberItem.getUnitSymbol();
}
EnrichedItemDTO[] memberDTOs;
if (drillDown) {
Collection<EnrichedItemDTO> members = new LinkedHashSet<>();