From c0be17a6bd21ea31f841a30c64d985b7c109803b Mon Sep 17 00:00:00 2001 From: philippmeissner Date: Wed, 3 Jun 2020 13:44:45 +0200 Subject: [PATCH] updated param type to include already handled types --- projects/ngx-translate/core/src/lib/translate.pipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ngx-translate/core/src/lib/translate.pipe.ts b/projects/ngx-translate/core/src/lib/translate.pipe.ts index b1f4ea3c..6d0abb35 100644 --- a/projects/ngx-translate/core/src/lib/translate.pipe.ts +++ b/projects/ngx-translate/core/src/lib/translate.pipe.ts @@ -37,7 +37,7 @@ export class TranslatePipe implements PipeTransform, OnDestroy { this.translate.get(key, interpolateParams).subscribe(onTranslation); } - transform(query: string, ...args: any[]): any { + transform(query: string | null | undefined, ...args: any[]): any { if (!query || !query.length) { return query; }