mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 15:03:52 +00:00
cleanup loading states
This commit is contained in:
@@ -40,11 +40,14 @@ export function SessionItem({
|
||||
setLoading(true);
|
||||
const response = await cleanupSession({
|
||||
sessionId: id,
|
||||
}).catch((error) => {
|
||||
setError(error.message);
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
setError(error.message);
|
||||
})
|
||||
.finally(() => {
|
||||
setLoading(false);
|
||||
});
|
||||
|
||||
setLoading(false);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user