Special support for obsolete tags

This commit is contained in:
Misode
2023-06-07 19:44:38 +02:00
parent a471c93a22
commit 42e8da47f7
4 changed files with 11 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ export function VersionDetail({ id, version }: Props) {
const { value: changes } = useAsync(fetchChangelogs, [])
const filteredChangelogs = useMemo(() =>
changes?.filter(c => c.version === id || c.group === id),
changes?.filter(c => c.version === id || (c.group === id && !c.tags.includes('obsolete'))),
[id, changes])
const articleLink = version && getArticleLink(version.id)