diff --git a/src/core/ngTableParams.ts b/src/core/ngTableParams.ts index b21f9f9d..224d01e1 100644 --- a/src/core/ngTableParams.ts +++ b/src/core/ngTableParams.ts @@ -385,7 +385,7 @@ export class NgTableParams { parameters(newParameters?: ParamValues | { [name: string]: string }, parseParamsFromUrl?: boolean): this parameters(newParameters?: ParamValues | { [name: string]: string }, parseParamsFromUrl?: boolean): ParamValues | this { parseParamsFromUrl = parseParamsFromUrl || false; - if (typeof newParameters !== undefined) { + if (newParameters !== undefined) { for (const key in newParameters) { let value = newParameters[key]; if (parseParamsFromUrl && key.indexOf('[') >= 0) {