message: Added fix for missing enabled flag
diff: @@ -120,8 +120,14 @@ export default function UserFederationSection() {
  };
  if (userFederations) {
  - cards = userFederations.sort(cardSorter).map((userFederation, index) => {
  - const ufCardDropdownItems = [
  + cards = userFederations.sort(cardSorter).map((userFederation, index) => (
  + <GalleryItem
  + key={index}
  + className="keycloak-admin--user-federation__gallery-item"
  + >
  + <KeycloakCard
  + id={userFederation.id!}
  + dropdownItems={[
  <DropdownItem
  key={`${index}-cardDelete`}
  onClick={() => {
  @@ -131,30 +137,23 @@ export default function UserFederationSection() {
  >
  {t("common:delete")}
  </DropdownItem>,
  - ];
  - return (
  - <GalleryItem
  - key={index}
  - className="keycloak-admin--user-federation__gallery-item"
  - >
  - <KeycloakCard
  - id={userFederation.id!}
  - dropdownItems={ufCardDropdownItems}
  + ]}
  providerId={userFederation.providerId!}
  title={userFederation.name!}
  footerText={toUpperCase(userFederation.providerId!)}
  labelText={
  - userFederation.config!["enabled"][0] !== "false"
  + userFederation.config?.["enabled"]?.[0] !== "false"
  ? `${t("common:enabled")}`
  : `${t("common:disabled")}`
  }
  labelColor={
  - userFederation.config!["enabled"][0] !== "false" ? "blue" : "gray"
  + userFederation.config?.["enabled"]?.[0] !== "false"
  + ? "blue"
  + : "gray"
  }
  />
  </GalleryItem>
  - );
  - });
  + ));
  }
  return (
  