This commit is contained in:
Luiz Silva 2025-01-30 23:16:19 -03:00
parent 773013d97f
commit 68407e24ab
4 changed files with 7 additions and 4 deletions

View file

@ -65,7 +65,10 @@ export class TipagemRotas<T extends { [q: string]: string | undefined }> {
const queryKeys = Object.entries(query)
for (const [key, value] of queryKeys) {
url.searchParams.set(String(key), value)
url.searchParams.set(
String(key),
value === undefined || value === null ? "" : value,
)
}
url.hash = ""