From 197c6d2973dd983bbf857bb4454cc1a144d1df7f Mon Sep 17 00:00:00 2001 From: "k.shushkovsky" Date: Sun, 12 Jul 2020 14:43:25 +0800 Subject: [PATCH] fix(pipe): checking to observable fix #1213 --- 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..199bfa14 100644 --- a/projects/ngx-translate/core/src/lib/translate.pipe.ts +++ b/projects/ngx-translate/core/src/lib/translate.pipe.ts @@ -28,7 +28,7 @@ export class TranslatePipe implements PipeTransform, OnDestroy { }; if (translations) { let res = this.translate.getParsedResult(translations, key, interpolateParams); - if (isObservable(res.subscribe)) { + if (isObservable(res)) { res.subscribe(onTranslation); } else { onTranslation(res);