Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
3bf5bcaf
Commit
3bf5bcaf
authored
May 24, 2018
by
Jaden DIEFENBAUGH
Browse files
[js] fix line using old props obj in componentWillReceiveProps()
parent
68bf2266
Pipeline
#20474
passed with stages
in 71 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
conda/js/src/components/NewEntityModal.jsx
View file @
3bf5bcaf
...
...
@@ -87,7 +87,7 @@ export class NewEntityModal extends React.Component<Props, State> {
componentWillReceiveProps
=
(
newProps
:
Props
)
=>
{
this
.
setState
({
nameSegs
:
getStartNameSegs
(
newProps
.
copyObj
,
newProps
.
data
.
map
(
d
=>
d
.
name
),
newProps
.
entity
,
this
.
p
rops
.
nameOrVersion
),
nameSegs
:
getStartNameSegs
(
newProps
.
copyObj
,
newProps
.
data
.
map
(
d
=>
d
.
name
),
newProps
.
entity
,
newP
rops
.
nameOrVersion
),
numSegs
:
nameSegmentsForEntity
(
newProps
.
entity
),
});
}
...
...
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