1
0
mirror of https://github.com/immich-app/immich.git synced 2025-01-29 17:43:42 +02:00

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
This commit is contained in:
Zack Pollard 2024-05-02 01:29:13 +01:00
parent 959b3f05d2
commit a2c040a47f

View File

@ -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}]{' '}
</a>
) : (
<span>[{item.release}]</span>
item.release && <span>[{item.release}]</span>
)}
</span>
</div>