Skip to content

Commit 9d7ceda

Browse files
committed
fixes loading state when redirecting to /teams page
1 parent cebf8de commit 9d7ceda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-server/pages/teams/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function Page() {
2222
integrations: { github: isGithubIntegrated }
2323
} = useAuth();
2424
const teamsList = useSelector((state) => state.team.teams);
25-
const loading = useBoolState(true);
25+
const loading = useBoolState(!Boolean(teamsList.length));
2626

2727
const fetchAllTeams = useCallback(async () => {
2828
depFn(loading.true);

0 commit comments

Comments
 (0)