Skip to content

Commit b569877

Browse files
committed
chore: stop infinite loading of users
1 parent f216ae6 commit b569877

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ui/views/UserList/Components/UserList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ const UserList: React.FC = () => {
3636
navigate(`/dashboard/admin/user/${username}`, { replace: true });
3737

3838
useEffect(() => {
39+
console.log('LOADING USERS');
3940
getUsers(setIsLoading, setData, setAuth, setErrorMessage);
40-
});
41+
}, []);
4142

4243
if (isLoading) return <div>Loading...</div>;
4344
if (errorMessage) return <Danger>{errorMessage}</Danger>;

0 commit comments

Comments
 (0)