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

Commit 367c956

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/utils/props.js

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

95+
console.log('configurablePropDefaultFnName', configurablePropDefaultFnName)
96+
9597
// Detect wether the given value is currently a function
9698
// and isn't the props default function
97-
export const hasPropFunction = fn => isFunction(fn) && fn.name !== configurablePropDefaultFnName
99+
export const hasPropFunction = fn => {
100+
console.log('hasPropFunction', isFunction(fn), fn.name)
101+
return isFunction(fn) && fn.name !== configurablePropDefaultFnName
102+
}

0 commit comments

Comments
 (0)