diff --git a/lib/rules/prop-types.js b/lib/rules/prop-types.js index 12720d2c63..365c491fc9 100644 --- a/lib/rules/prop-types.js +++ b/lib/rules/prop-types.js @@ -276,8 +276,9 @@ module.exports = function(context) { unionTypeDefinition.children = true; return unionTypeDefinition; } - unionTypeDefinition.children.push(type); } + + unionTypeDefinition.children.push(type); } if (unionTypeDefinition.length === 0) { // no complex type found, simply accept everything