fix: prevent undefined in URL
This commit is contained in:
parent
b419db505b
commit
eb8bcc9532
@ -52,7 +52,7 @@ function replaceAll(
|
||||
): string {
|
||||
let result = pattern;
|
||||
for (const v in vars) {
|
||||
result = result.replace(vars[v], values[v]);
|
||||
result = result.replace(vars[v], !values[v] ? "" : values[v]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user