From c80ba38d3de0dc2446f32a043cefd70c51c7b513 Mon Sep 17 00:00:00 2001 From: TheDiaval Date: Tue, 30 Jul 2019 16:16:03 +0300 Subject: [PATCH] fix(core): check if localization key exists --- npm/ng-packs/packages/core/src/lib/states/config.state.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/npm/ng-packs/packages/core/src/lib/states/config.state.ts b/npm/ng-packs/packages/core/src/lib/states/config.state.ts index f5bf9ffbe6..758051cce6 100644 --- a/npm/ng-packs/packages/core/src/lib/states/config.state.ts +++ b/npm/ng-packs/packages/core/src/lib/states/config.state.ts @@ -107,6 +107,8 @@ export class ConfigState { } static getCopy(key: string, ...interpolateParams: string[]) { + if (!key) key = ''; + const keys = key.split('::') as string[]; const selector = createSelector( [ConfigState],