Skip to content

Commit 7e09de1

Browse files
committed
Changed oneOfType to actually keep the child types
1 parent ab4da9f commit 7e09de1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rules/prop-types.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,9 @@ module.exports = function(context) {
276276
unionTypeDefinition.children = true;
277277
return unionTypeDefinition;
278278
}
279-
unionTypeDefinition.children.push(type);
280279
}
280+
281+
unionTypeDefinition.children.push(type);
281282
}
282283
if (unionTypeDefinition.length === 0) {
283284
// no complex type found, simply accept everything

0 commit comments

Comments
 (0)