Mehmet Erim
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
npm/ng-packs/packages/core/src/lib/states/config.state.ts
|
|
|
@ -75,7 +75,7 @@ export class ConfigState { |
|
|
|
|
|
|
|
static getFeature(key: string) { |
|
|
|
const selector = createSelector([ConfigState], (state: Config.State) => { |
|
|
|
return state.features.values[key]; |
|
|
|
return state.features.values?.[key]; |
|
|
|
}); |
|
|
|
|
|
|
|
return selector; |
|
|
|
@ -83,7 +83,7 @@ export class ConfigState { |
|
|
|
|
|
|
|
static getSetting(key: string) { |
|
|
|
const selector = createSelector([ConfigState], (state: Config.State) => { |
|
|
|
return state.setting.values[key]; |
|
|
|
return state.setting.values?.[key]; |
|
|
|
}); |
|
|
|
|
|
|
|
return selector; |
|
|
|
|