🌐 AI搜索 & 代理 主页
Skip to content

Commit 1d32b62

Browse files
committed
Update props.js
1 parent 367c956 commit 1d32b62

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/utils/props.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,7 @@ export const makePropsConfigurable = (props, componentKey) =>
9292
// against in `hasPropFunction()`
9393
const configurablePropDefaultFnName = makePropConfigurable({}, '', '').default.name
9494

95-
console.log('configurablePropDefaultFnName', configurablePropDefaultFnName)
96-
9795
// Detect wether the given value is currently a function
9896
// 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-
}
97+
export const hasPropFunction = fn =>
98+
isFunction(fn) && fn.name && fn.name !== configurablePropDefaultFnName

0 commit comments

Comments
 (0)