Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Julien Jerphanion
Rex Dri
Commits
4a9ed6bb
Commit
4a9ed6bb
authored
Sep 14, 2018
by
Florent Chehab
Browse files
Memory leak removed
parent
945e00a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/university/shared/History.js
View file @
4a9ed6bb
...
@@ -50,7 +50,9 @@ class History extends React.Component {
...
@@ -50,7 +50,9 @@ class History extends React.Component {
}
}
componentWillMount
()
{
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
()
{
getVersions
()
{
...
...
frontend/src/components/university/shared/PendingModeration.js
View file @
4a9ed6bb
...
@@ -37,7 +37,9 @@ class PendingModeration extends React.Component {
...
@@ -37,7 +37,9 @@ class PendingModeration extends React.Component {
}
}
componentWillMount
()
{
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
)
{
renderPendingModerationInfo
(
rawModelData
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment