fix: fix type errors
Some checks failed
Code quality / quality (push) Failing after 4s
Build and Check / Astro Check for Node.js 22 (push) Failing after 4s
Build and Check / Astro Check for Node.js 23 (push) Failing after 4s
Build and Check / Astro Build for Node.js 22 (push) Failing after 5s
Build and Check / Astro Build for Node.js 23 (push) Failing after 4s

This commit is contained in:
saicaca
2025-05-30 20:34:35 +08:00
parent dde7835dd7
commit 559a324ae5
3 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ export function getTagUrl(tag: string): string {
return url(`/archive/?tag=${encodeURIComponent(tag.trim())}`);
}
export function getCategoryUrl(category: string): string {
export function getCategoryUrl(category: string | null): string {
if (
!category ||
category.trim() === "" ||