diff --git a/js/apps/admin-ui/src/user-federation/ldap/mappers/LdapMapperDetails.tsx b/js/apps/admin-ui/src/user-federation/ldap/mappers/LdapMapperDetails.tsx
index bf6855d0f6..02de4997b7 100644
--- a/js/apps/admin-ui/src/user-federation/ldap/mappers/LdapMapperDetails.tsx
+++ b/js/apps/admin-ui/src/user-federation/ldap/mappers/LdapMapperDetails.tsx
@@ -182,24 +182,28 @@ export default function LdapMapperDetails() {
{t("common:delete")}
,
- mapper?.metadata.fedToKeycloakSyncSupported && (
- sync("fedToKeycloak")}
- >
- {t("syncLDAPGroupsToKeycloak")}
-
- ),
- mapper?.metadata.keycloakToFedSyncSupported && (
- {
- sync("keycloakToFed");
- }}
- >
- {t("syncKeycloakGroupsToLDAP")}
-
- ),
+ ...(mapper?.metadata.fedToKeycloakSyncSupported
+ ? [
+ sync("fedToKeycloak")}
+ >
+ {t("syncLDAPGroupsToKeycloak")}
+ ,
+ ]
+ : []),
+ ...(mapper?.metadata.keycloakToFedSyncSupported
+ ? [
+ {
+ sync("keycloakToFed");
+ }}
+ >
+ {t("syncKeycloakGroupsToLDAP")}
+ ,
+ ]
+ : []),
]
}
/>