Skip to content

Commit 4b44439

Browse files
authored
[Docs Site] Fix changelog button when filter is unset (#21895)
1 parent 8991c95 commit 4b44439

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/changelog/index.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const props = {
8989
<div class="flex items-center justify-center">
9090
<button
9191
id="changelogs-next-button"
92-
class="bg-cl1-brand-orange text-cl1-black h-12 cursor-pointer rounded px-6 font-medium"
92+
class="h-12 cursor-pointer rounded bg-cl1-brand-orange px-6 font-medium text-cl1-black"
9393
>
9494
Load more items
9595
</button>
@@ -114,8 +114,8 @@ const props = {
114114

115115
filter?.addEventListener("change", updateFilter);
116116

117-
function filterByProduct(e: HTMLElement, value: string): boolean {
118-
if (value === "all") {
117+
function filterByProduct(e: HTMLElement, value?: string): boolean {
118+
if (!value || value === "all") {
119119
return true;
120120
}
121121

0 commit comments

Comments
 (0)