Skip to content

Commit

Permalink
fix(module:core:config): fix empty check (#5537)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Jul 9, 2020
1 parent 516e02d commit fd979f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/core/config/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function WithConfig<T>(componentName: NzConfigKey) {
return {
get(): T | undefined {
const originalValue = originalDescriptor?.get ? originalDescriptor.get.bind(this)() : this[privatePropName];
const assignedByUser = (this.assignmentCount[propName] || 0) > 1;
const assignedByUser = ((this.assignmentCount || {})[propName] || 0) > 1;

if (assignedByUser && isDefined(originalValue)) {
return originalValue;
Expand Down

0 comments on commit fd979f7

Please sign in to comment.