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 1e8b0cf commit e900065Copy full SHA for e900065
components/lib/utils/ObjectUtils.js
@@ -251,14 +251,14 @@ export default class ObjectUtils {
251
252
// Handle function invocation
253
if (params.length === 1) {
254
- // For single parameter, unwrap array if needed
+ // For single parameter case, unwrap array if needed to avoid extra nesting
255
const param = params[0];
256
257
return obj(Array.isArray(param) ? param[0] : param);
258
}
259
260
// Pass all parameters to function
261
- return obj(params);
+ return obj(...params);
262
263
264
static getComponentProp(component, prop = '', defaultProps = {}) {
0 commit comments