Skip to content

Commit

Permalink
Fix render error when an href is falsey
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbert authored and porsager committed Oct 1, 2024
1 parent 289224a commit 1689e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function cleanSlash(x) {
}

export function cleanHref(x) {
return cleanSlash(x).replace('/?', '?')
return x && cleanSlash(x).replace('/?', '?')
}

export function notValue(x) {
Expand Down

0 comments on commit 1689e06

Please sign in to comment.