From 815d6d9e5cf306d7ff60e5f38bcc40450f797d7a Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 31 May 2022 09:26:50 -0400 Subject: [PATCH] unbreak release notes (#28123) --- pages/[versionId]/admin/release-notes.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/[versionId]/admin/release-notes.tsx b/pages/[versionId]/admin/release-notes.tsx index e40ce3bc3c..fdc67f2f7d 100644 --- a/pages/[versionId]/admin/release-notes.tsx +++ b/pages/[versionId]/admin/release-notes.tsx @@ -9,8 +9,8 @@ import { GHAEReleaseNotesContextT, GHESReleaseNotesContextT } from 'components/r const liquid = new Liquid() type Props = { mainContext: MainContextT - ghaeContext?: GHAEReleaseNotesContextT - ghesContext?: GHESReleaseNotesContextT + ghaeContext: GHAEReleaseNotesContextT | null + ghesContext: GHESReleaseNotesContextT | null } export default function ReleaseNotes({ mainContext, ghesContext, ghaeContext }: Props) { return ( @@ -58,7 +58,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => ), }, } - : undefined, + : null, ghaeContext: currentVersion.plan === 'github-ae' ? { @@ -66,7 +66,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => releaseNotes: req.context.releaseNotes, releases: req.context.releases, } - : undefined, + : null, }, } }