fix: fix type errors
This commit is contained in:
1 parent
dde7835dd7
commit
559a324ae5
3 files changed
+3
-3
No files matched your search
@@ -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() === "" ||
|
||||
|
||||
Reference in new issue
Block a user