Skip to content

Commit 543b503

Browse files
committed
default to empty array
1 parent e03efe2 commit 543b503

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

static/app/utils/useReleaseStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ export function useReleaseStats(
7070
isPending,
7171
isError,
7272
error,
73-
releases: data?.pages.flatMap(([pageData]) => pageData),
73+
releases: data?.pages.flatMap(([pageData]) => pageData) || [],
7474
};
7575
}

static/app/views/releases/releaseBubbles/types.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface ChartRendererProps {
1414
/**
1515
* The list of releases in the current release group to render
1616
*/
17-
releases: ReleaseMetaBasic[] | undefined;
17+
releases: ReleaseMetaBasic[];
1818
/**
1919
* The starting Date object of the release group to render
2020
*/

0 commit comments

Comments
 (0)