diff --git a/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiPageHelper.java b/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiPageHelper.java index 543fdc3a..7821417f 100644 --- a/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiPageHelper.java +++ b/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiPageHelper.java @@ -327,8 +327,11 @@ public static List getAccessBasedNavigationsForOperations } public static List getRelatedServicesForPage(PageDefinition pageDefinition) { + String serviceClassForPage = getServiceClassForPage(pageDefinition); Set relations = getAccessBasedNavigationsForOperations(pageDefinition).stream() .map(AccessBasedNavigation::getAccessRelation) + // filter out already imported service impl. + .filter(r -> !(serviceRelationName(r) + "Impl").equals(serviceClassForPage)) .collect(Collectors.toSet()); return relations.stream().sorted(Comparator.comparing(NamedElement::getName)).toList(); }