Fix issue with delete.
This commit is contained in:
@@ -14,7 +14,7 @@ export function getDomainName(str) {
|
||||
}
|
||||
}
|
||||
|
||||
export function getQueryString(params) {
|
||||
export function getQueryString(params = {}) {
|
||||
const map = Object.keys(params).reduce((arr, key) => {
|
||||
if (params[key] !== undefined) {
|
||||
return arr.concat(`${key}=${encodeURIComponent(params[key])}`);
|
||||
|
||||
Reference in New Issue
Block a user