Skip to content

Commit

Permalink
Changed oneOfType to actually keep the child types
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebMorris committed Jul 14, 2015
1 parent ab4da9f commit 7e09de1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rules/prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e09de1

Please sign in to comment.