We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f85ff44 commit bf69820Copy full SHA for bf69820
lib/util/Components.js
@@ -99,11 +99,11 @@ Components.prototype.list = function() {
99
component = this.get(node);
100
}
101
if (component) {
102
- var newUsedProps = (this._list[i].usedPropTypes || []).filter(function(propType) {
+ const newUsedProps = (this._list[i].usedPropTypes || []).filter(function(propType) {
103
return !propType.node || propType.node.kind !== 'init';
104
});
105
106
- var componentId = this._getId(component.node);
+ const componentId = this._getId(component.node);
107
usedPropTypes[componentId] = (usedPropTypes[componentId] || []).concat(newUsedProps);
108
109
0 commit comments