Skip to content

Commit 3dd3760

Browse files
committed
Rollback 2.0.22 version
1 parent 17b38ef commit 3dd3760

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@webcodesk/react-app-framework",
3-
"version": "2.0.22",
3+
"version": "2.0.21",
44
"main": "dist/index.js",
55
"repository": {
66
"type": "git",

src/framework/components/PageComposition/Container.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import React from 'react';
2-
import mergeWith from 'lodash/mergeWith';
3-
import isArray from 'lodash/isArray';
42
import { pickInObject, omitInObject } from '../../commons/utilities';
53
import { connect } from 'react-redux';
64
import { bindActionCreators } from 'redux';
@@ -15,12 +13,6 @@ if (process.env.NODE_ENV !== 'production') {
1513
constants = require('../../commons/constants');
1614
}
1715

18-
function mergeCustomizer(objValue, srcValue) {
19-
if (isArray(objValue)) {
20-
return srcValue;
21-
}
22-
}
23-
2416
class Container extends React.Component {
2517
constructor (props, context) {
2618
super(props, context);
@@ -104,11 +96,7 @@ class Container extends React.Component {
10496
} = wrapperPicked;
10597
return React.createElement(
10698
wrappedComponent,
107-
mergeWith(
108-
{ ...restPicked, ...wrappedProps, ...this.wrappedHandlers, ...populatedProps},
109-
stateProps,
110-
mergeCustomizer
111-
),
99+
{ ...restPicked, ...wrappedProps, ...this.wrappedHandlers, ...populatedProps, ...stateProps },
112100
children
113101
);
114102
}

0 commit comments

Comments
 (0)