Catch 403 when only query-clients is allowed (#2182)
This commit is contained in:
parent
f7e0596301
commit
47a8c25c99
1 changed files with 7 additions and 2 deletions
|
@ -24,8 +24,13 @@ export const InitialAccessTokenList = () => {
|
||||||
|
|
||||||
const [token, setToken] = useState<ClientInitialAccessPresentation>();
|
const [token, setToken] = useState<ClientInitialAccessPresentation>();
|
||||||
|
|
||||||
const loader = async () =>
|
const loader = async () => {
|
||||||
await adminClient.realms.getClientsInitialAccess({ realm });
|
try {
|
||||||
|
return await adminClient.realms.getClientsInitialAccess({ realm });
|
||||||
|
} catch (error) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const [toggleDeleteDialog, DeleteConfirm] = useConfirmDialog({
|
const [toggleDeleteDialog, DeleteConfirm] = useConfirmDialog({
|
||||||
titleKey: "clients:tokenDeleteConfirmTitle",
|
titleKey: "clients:tokenDeleteConfirmTitle",
|
||||||
|
|
Loading…
Reference in a new issue