fix: route param fallback not empty string (#2146)

This commit is contained in:
Marvin Hagemeister
2023-12-06 09:33:36 +01:00
committed by GitHub
parent c05a6b1496
commit c72f534369
4 changed files with 20 additions and 3 deletions
+1 -3
View File
@@ -292,9 +292,7 @@ export function getParamsAndRoute(
for (const key in matched) {
const value = matched[key];
if (value !== undefined) {
groups[key] = decodeURIComponent(value);
}
groups[key] = value !== undefined ? decodeURIComponent(value) : "";
}
return {
route: route,