Commit 3bf5bcaf authored by Jaden DIEFENBAUGH's avatar 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
......@@ -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.props.nameOrVersion),
nameSegs: getStartNameSegs(newProps.copyObj, newProps.data.map(d => d.name), newProps.entity, newProps.nameOrVersion),
numSegs: nameSegmentsForEntity(newProps.entity),
});
}
......
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