diff --git a/src/pages/CommitDetailPage/queries/CommitPageDataQueryOpts.tsx b/src/pages/CommitDetailPage/queries/CommitPageDataQueryOpts.tsx index 7f23c4b671..25df363ab2 100644 --- a/src/pages/CommitDetailPage/queries/CommitPageDataQueryOpts.tsx +++ b/src/pages/CommitDetailPage/queries/CommitPageDataQueryOpts.tsx @@ -22,9 +22,9 @@ const BundleAnalysisReportSchema = z.object({ isCached: z.boolean(), }) -const BundleAnalysisReportUnion = z.union([ +const BundleAnalysisReportUnion = z.discriminatedUnion('__typename', [ BundleAnalysisReportSchema, - MissingHeadReportSchema.shape.__typename, + z.object({ __typename: MissingHeadReportSchema.shape.__typename }), ]) const BundleAnalysisComparisonResult = z.union([