From 1689e066b3aee2517ed2323bc0e00c430cb96df3 Mon Sep 17 00:00:00 2001 From: Gilbert Date: Mon, 30 Sep 2024 22:29:03 -0500 Subject: [PATCH] Fix render error when an href is falsey --- src/shared.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared.js b/src/shared.js index 12e2e3f..cbdf341 100644 --- a/src/shared.js +++ b/src/shared.js @@ -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) {