diff --git a/src/clients/initial-access/InitialAccessTokenList.tsx b/src/clients/initial-access/InitialAccessTokenList.tsx index f54853dac1..0c61453590 100644 --- a/src/clients/initial-access/InitialAccessTokenList.tsx +++ b/src/clients/initial-access/InitialAccessTokenList.tsx @@ -24,8 +24,13 @@ export const InitialAccessTokenList = () => { const [token, setToken] = useState(); - const loader = async () => - await adminClient.realms.getClientsInitialAccess({ realm }); + const loader = async () => { + try { + return await adminClient.realms.getClientsInitialAccess({ realm }); + } catch (error) { + return []; + } + }; const [toggleDeleteDialog, DeleteConfirm] = useConfirmDialog({ titleKey: "clients:tokenDeleteConfirmTitle",