Skip to content

Commit e90043b

Browse files
fix: fallback (#348)
1 parent 0b76ac7 commit e90043b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redux/selectors/runs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const runsForRepositoryId = (repositoryId: TId | null | undefined) => (
7474
state?: State | null,
7575
): TRun[] => {
7676
if (!state || !repositoryId) return [];
77-
const byRepositoryId = getByRepositoryId(state);
77+
const byRepositoryId = getByRepositoryId(state) || {};
7878
const byId = getById(state);
7979
if (!byRepositoryId[repositoryId]) return [];
8080
return byRepositoryId[repositoryId].map((id: TId) => byId[id]);

0 commit comments

Comments
 (0)