diff --git a/src/main/java/eu/dnetlib/uoamonitorservice/service/SectionService.java b/src/main/java/eu/dnetlib/uoamonitorservice/service/SectionService.java index 147c546..346e06c 100644 --- a/src/main/java/eu/dnetlib/uoamonitorservice/service/SectionService.java +++ b/src/main/java/eu/dnetlib/uoamonitorservice/service/SectionService.java @@ -134,13 +134,13 @@ public class SectionService { this.topicDAO.findByCategoriesContaining(category.getId()).forEach(topic -> { this.stakeholderDAO.findByTopicsContaining(topic.getId()).forEach(stakeholder -> { this.save(stakeholder, subCategory, section.copy(), index); - section.getIndicators().forEach(indicator -> { - this.indicatorService.createChildren(section, this.indicatorService.find(indicator)); - }); }); }); }); }); + section.getIndicators().forEach(indicator -> { + this.indicatorService.createChildren(section, this.indicatorService.find(indicator)); + }); } public void updateChildren(Section section) {