Skip to content

Commit e900065

Browse files
authored
Fix #7770: ObjectUtils fix regression for passing all params (#7774)
1 parent 1e8b0cf commit e900065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/lib/utils/ObjectUtils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@ export default class ObjectUtils {
251251

252252
// Handle function invocation
253253
if (params.length === 1) {
254-
// For single parameter, unwrap array if needed
254+
// For single parameter case, unwrap array if needed to avoid extra nesting
255255
const param = params[0];
256256

257257
return obj(Array.isArray(param) ? param[0] : param);
258258
}
259259

260260
// Pass all parameters to function
261-
return obj(params);
261+
return obj(...params);
262262
}
263263

264264
static getComponentProp(component, prop = '', defaultProps = {}) {

0 commit comments

Comments
 (0)