Commit 4a9ed6bb authored by Florent Chehab's avatar Florent Chehab

Memory leak removed

parent 945e00a3
Pipeline #27343 passed with stages
in 2 minutes and 40 seconds
......@@ -50,7 +50,9 @@ class History extends React.Component {
}
componentWillMount() {
this.newFactory = _.cloneDeep(this.props.factory);
let tmp = _.pick(this.props.factory, ['props', 'renderCore', 'renderTitle']);
tmp = _.omit(tmp, ['props.children']);
this.newFactory = _.cloneDeep(tmp);
}
getVersions() {
......
......@@ -37,7 +37,9 @@ class PendingModeration extends React.Component {
}
componentWillMount() {
this.newFactory = _.cloneDeep(this.props.factory);
let tmp = _.pick(this.props.factory, ['props', 'renderCore', 'renderTitle']);
tmp = _.omit(tmp, ['props.children']);
this.newFactory = _.cloneDeep(tmp)
}
renderPendingModerationInfo(rawModelData) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment