Small fix
This commit is contained in:
@@ -97,7 +97,7 @@ async function filter<T>(
|
||||
|
||||
function groupUrl(url: string, params?: any): string {
|
||||
const postfix = _.keys(params || {})
|
||||
.map(key => `${key}=${encodeURIComponent(params[key]) || ''}`)
|
||||
.map(key => `${key}=${encodeURIComponent(params[key] || '') || ''}`)
|
||||
.join('&');
|
||||
if (!postfix) return url;
|
||||
return `${url}?${postfix}`;
|
||||
|
||||
Reference in New Issue
Block a user