Skip to content
Snippets Groups Projects
Commit beb2137b authored by Muthukrishnanmatriot's avatar Muthukrishnanmatriot
Browse files

Fixed the redirect issue

parent c0c35d95
No related branches found
No related tags found
1 merge request!415Resolve TMSS-678
......@@ -126,12 +126,7 @@ export class ReservationView extends Component {
} else {
appGrowl.show({severity: 'success', summary: 'Success', detail: 'Reservation deleted successfully'});
this.setState({confirmDialogVisible: false});
/* If the page is navigated to from another page of the app, goback to the origin origin else go to Reservation List page */
if (this.props.history.length > 2) {
this.props.history.goBack();
} else {
this.setState({redirect: `/reservation/list`});
}
this.setState({redirect: `/reservation/list`});
}
}
......
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