From a2c040a47f305347bffd36ca3f3fdfeb264a4e01 Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Thu, 2 May 2024 01:29:13 +0100 Subject: [PATCH] fix(docs): allow no release specified for milestone (#9212) fix(docs): make release optional in milestones default to tag if not specified when tag is also specified --- docs/src/components/timeline.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/components/timeline.tsx b/docs/src/components/timeline.tsx index d902073182..b4b56bd283 100644 --- a/docs/src/components/timeline.tsx +++ b/docs/src/components/timeline.tsx @@ -7,7 +7,7 @@ export interface Item { icon: string; title: string; description?: string; - release: string; + release?: string; tag?: string; date: Date; dateType: DateType; @@ -70,10 +70,10 @@ export default function Timeline({ items }: Props): JSX.Element { target="_blank" rel="noopener" > - [{item.release}]{' '} + [{item.release ?? item.tag}]{' '} ) : ( - [{item.release}] + item.release && [{item.release}] )}