Skip to content

Commit

Permalink
fix(ui-fix-edit-job): ui-fix-edit-job (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
manorlh committed Oct 19, 2020
1 parent adbf9a9 commit d0d4b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/features/components/JobForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class Form extends React.Component {
const maxVirtualUsers = parallel * 250;
this.setState({ parallelism: parallel, max_virtual_users: maxVirtualUsers })
}
if (this.props.webhooks !== prevProps.webhooks) {
if (this.props.webhooks !== prevProps.webhooks && this.props.editMode) {
const newState = createStateForEditJob(this.props.data, this.props.webhooks);
this.setState({ ...newState });
}
Expand Down

0 comments on commit d0d4b2b

Please sign in to comment.