fix: support for empty strings
This commit is contained in:
parent
37d0f9438e
commit
8eb0183c78
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user