Skip to content

Commit

Permalink
Fix metadata html error
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jul 10, 2024
1 parent a9f4c29 commit 58bd696
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/elements/paged-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ const PagedList = ({children, ulProps, liProps, pageKey = "page", totalPages, pa
}, [loadPage, router, currentPage, pageKey, searchParams])

useEffect(() => {
if (currentPage > 1 && !ref.current) goToPage(currentPage, true)
ref.current = true
if (currentPage > 1 && !ref.current) {
ref.current = true
goToPage(currentPage, true)
}
}, [currentPage, goToPage])

const paginationButtons = usePagination(totalPages * items.length, currentPage, items.length, pagerSiblingCount)
Expand Down
1 change: 1 addition & 0 deletions src/styles/fonts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export const sourceSans3 = Source_Sans_3({
subsets: ["latin"],
display: "swap",
variable: "--font-sans",
adjustFontFallback: false,
})

0 comments on commit 58bd696

Please sign in to comment.