Skip to content
Snippets Groups Projects
Commit 524b55f3 authored by Harshith DS's avatar Harshith DS
Browse files

TMSS-1657: Fixed routing in cycle edit page

parent 4391ddbe
No related branches found
No related tags found
1 merge request!918Resolve TMSS-1657, TMSS-1751
......@@ -410,7 +410,7 @@ export class CycleEdit extends Component {
*/
cancelEdit() {
publish('edit-dirty', false);
this.props.history.length>1?this.state.isDirty?this.props.history.go(-2):this.props.history.go(-1):this.props.history.push(`/cycle/view/${this.props.match.params.id}`);
this.props.history.length>1?!this.state.isDirty?this.props.history.go(-2):this.props.history.go(-1):this.props.history.push(`/cycle/view/${this.props.match.params.id}`);
this.setState({showDialog: false});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment