We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66de43c commit e8f3cf4Copy full SHA for e8f3cf4
src/core/BaseService.ts
@@ -12,6 +12,7 @@ import {
12
objectToFormData,
13
removeDoubleSlash,
14
isObject,
15
+ isArray,
16
} from '../util'
17
import qs, { IParseOptions } from 'qs'
18
@@ -221,7 +222,7 @@ class BaseService {
221
222
removeParameters(parameters = [] as any[]): this {
223
if (!parameters || !parameters.length) {
224
this.parameters = []
- } else {
225
+ } else if (isArray(parameters)) {
226
for (const parameter of parameters) {
227
delete this.parameters[parameter]
228
}
0 commit comments