fix loader issue for deleted user (#21218)

This commit is contained in:
Shrushti Polekar 2025-05-16 13:24:20 +05:30 committed by GitHub
parent c443597aae
commit d139ca7863
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -180,7 +180,7 @@ const UserPage = () => {
fetchUserData();
}, [username]);
if (userData?.name !== username || isLoading) {
if (isLoading) {
return <Loader />;
}
@ -188,6 +188,10 @@ const UserPage = () => {
return errorPlaceholder;
}
if (userData?.name !== username) {
return <Loader />;
}
return (
<PageLayoutV1 pageTitle={t('label.user')}>
<Users