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 367c956 commit 1d32b62Copy full SHA for 1d32b62
src/utils/props.js
@@ -92,11 +92,7 @@ export const makePropsConfigurable = (props, componentKey) =>
92
// against in `hasPropFunction()`
93
const configurablePropDefaultFnName = makePropConfigurable({}, '', '').default.name
94
95
-console.log('configurablePropDefaultFnName', configurablePropDefaultFnName)
96
-
97
// Detect wether the given value is currently a function
98
// and isn't the props default function
99
-export const hasPropFunction = fn => {
100
- console.log('hasPropFunction', isFunction(fn), fn.name)
101
- return isFunction(fn) && fn.name !== configurablePropDefaultFnName
102
-}
+export const hasPropFunction = fn =>
+ isFunction(fn) && fn.name && fn.name !== configurablePropDefaultFnName
0 commit comments