Skip to content

Commit cd6aeea

Browse files
authored
fix: empty state for repos and contributions (#6963)
1 parent 33e9699 commit cd6aeea

File tree

1 file changed

+3
-3
lines changed
  • packages/app/src/app/overmind/namespaces/dashboard

1 file changed

+3
-3
lines changed

packages/app/src/app/overmind/namespaces/dashboard/actions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ export const getContributionBranches = async ({ state, effects }: Context) => {
19551955
{}
19561956
);
19571957
const contributionBranches = contributionsData?.me?.recentBranches;
1958-
if (!contributionBranches?.length) {
1958+
if (!contributionBranches) {
19591959
return;
19601960
}
19611961

@@ -1981,7 +1981,7 @@ export const getRepositoriesByTeam = async ({ state, effects }: Context) => {
19811981
}
19821982
);
19831983
const unsyncedRepositories = unsyncedRepositoriesData?.me?.team?.projects;
1984-
if (!unsyncedRepositories?.length) {
1984+
if (!unsyncedRepositories) {
19851985
return;
19861986
}
19871987

@@ -1996,7 +1996,7 @@ export const getRepositoriesByTeam = async ({ state, effects }: Context) => {
19961996
}
19971997
);
19981998
const syncedRepositories = syncedRepositoriesData?.me?.team?.projects;
1999-
if (!syncedRepositories?.length) {
1999+
if (!syncedRepositories) {
20002000
return;
20012001
}
20022002

0 commit comments

Comments
 (0)