Skip to content

Commit

Permalink
Pass system name to parseProperties for proper warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mrxz committed Feb 14, 2024
1 parent 3128eb5 commit 5e67130
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ Component.prototype = {
if (this.isSingleProperty) { return parseProperty(data, schema); }
}

return parseProperties(data, schema, undefined, this.name, silent);
return parseProperties(data, schema, false, this.name, silent);
},

/**
Expand Down
2 changes: 1 addition & 1 deletion src/core/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ System.prototype = {
if (isSingleProp(schema)) {
this.data = parseProperty(rawData, schema);
} else {
this.data = parseProperties(styleParser.parse(rawData) || {}, schema);
this.data = parseProperties(styleParser.parse(rawData) || {}, schema, false, this.name);
}
},

Expand Down

0 comments on commit 5e67130

Please sign in to comment.