Skip to content

Commit f893c1e

Browse files
committed
Hide pack format bumps on the homepage
1 parent 2344753 commit f893c1e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app/pages/Home.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,12 @@ function Changelog() {
130130
const hugeScreen = useMediaQuery('(min-width: 960px)')
131131

132132
const { value: changes } = useAsync(fetchChangelogs, [])
133-
const latestChanges = useMemo(() => changes?.sort((a, b) => b.order - a.order).slice(0, 2), [changes])
133+
const latestChanges = useMemo(() => {
134+
return changes
135+
?.sort((a, b) => b.order - a.order)
136+
.filter(c => !(c.tags.includes('pack') && c.tags.includes('breaking')))
137+
.slice(0, 2)
138+
}, [changes])
134139

135140
return <ToolGroup title={locale('changelog')} link="/changelog/" titleIcon="git_commit">
136141
{latestChanges?.map(change => <ChangelogEntry minimal={!hugeScreen} short={true} change={change} />)}

0 commit comments

Comments
 (0)