We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b76ac7 commit e90043bCopy full SHA for e90043b
src/redux/selectors/runs.ts
@@ -74,7 +74,7 @@ export const runsForRepositoryId = (repositoryId: TId | null | undefined) => (
74
state?: State | null,
75
): TRun[] => {
76
if (!state || !repositoryId) return [];
77
- const byRepositoryId = getByRepositoryId(state);
+ const byRepositoryId = getByRepositoryId(state) || {};
78
const byId = getById(state);
79
if (!byRepositoryId[repositoryId]) return [];
80
return byRepositoryId[repositoryId].map((id: TId) => byId[id]);
0 commit comments