fix: support for empty strings

This commit is contained in:
Sebastian 2023-08-07 06:47:51 -03:00
parent 37d0f9438e
commit 8eb0183c78
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069

View File

@ -767,7 +767,7 @@ function getUrlInfo(
const qp = new URLSearchParams(); const qp = new URLSearchParams();
let withParams = false; let withParams = false;
Object.entries(params).forEach(([name, value]) => { Object.entries(params).forEach(([name, value]) => {
if (value) { if (value !== undefined) {
withParams = true; withParams = true;
qp.append(name, value); qp.append(name, value);
} }