File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const wrapPropTypes = () => {
2424 const original = _ . cloneDeep ( PropTypes )
2525
2626 _ . each ( _ . keys ( GENERATORS ) , ( k ) => {
27+ if ( PropTypes [ k ] === undefined ) return
2728 if ( PropTypes [ k ] . isRequired !== undefined ) {
2829 // Simple type. Just extend the object
2930 PropTypes [ k ] = addHiddenProperties ( PropTypes [ k ] , 'type' , k )
Original file line number Diff line number Diff line change @@ -176,6 +176,8 @@ describe('generateProps (correct)', () => {
176176
177177 describe ( 'given a required symbol' , ( ) => {
178178 it ( 'generates a symbol' , ( ) => {
179+ if ( PropTypes . symbol === undefined ) return
180+
179181 const propTypes = { mySymbol : PropTypes . symbol . isRequired }
180182 ComponentAsClass . propTypes = propTypes
181183 ComponentAsFunction . propTypes = propTypes
You can’t perform that action at this time.
0 commit comments