mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
- prevent issues when ordering by guiOrder due to pagination of results Closes #32669 Signed-off-by: Stefan Guilhen <sguilhen@redhat.com> (cherry picked from commit 6503d202ac9994a5ea6dafc0f800b1a5f1fd8e76) Co-authored-by: Stefan Guilhen <sguilhen@redhat.com>
This commit is contained in:
parent
b1526cd4a5
commit
6750641808
@ -109,7 +109,7 @@ export default function IdentityProvidersSection() {
|
||||
params.search = search;
|
||||
}
|
||||
const providers = await adminClient.identityProviders.find(params);
|
||||
return sortBy(providers, ["config.guiOrder", "alias"]);
|
||||
return sortBy(providers, "alias");
|
||||
};
|
||||
|
||||
const navigateToCreate = (providerId: string) =>
|
||||
|
||||
@ -6,6 +6,7 @@ import {
|
||||
Switch,
|
||||
ToolbarItem,
|
||||
} from "@patternfly/react-core";
|
||||
import { sortBy } from "lodash-es";
|
||||
import { BellIcon } from "@patternfly/react-icons";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
@ -85,8 +86,12 @@ export const IdentityProviders = () => {
|
||||
[],
|
||||
);
|
||||
|
||||
const loader = () =>
|
||||
adminClient.organizations.listIdentityProviders({ orgId: orgId! });
|
||||
const loader = async () => {
|
||||
const providers = await adminClient.organizations.listIdentityProviders({
|
||||
orgId: orgId!,
|
||||
});
|
||||
return sortBy(providers, "alias");
|
||||
};
|
||||
|
||||
const [toggleUnlinkDialog, UnlinkConfirm] = useConfirmDialog({
|
||||
titleKey: "identityProviderUnlink",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user