Skip to content

Commit

Permalink
fix: not jumping to report screen after running scheduled only test
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-nudler-payu-gpo committed Nov 22, 2020
1 parent 6c429e7 commit f54afe2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/features/get-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ class getTests extends React.Component {
if (!prevProps.createJobSuccess && this.props.createJobSuccess) {
const { report_id, test_id } = this.props.createJobSuccess;
this.props.setCreateJobSuccess(undefined);
history.replace(`/tests/${test_id}/reports/${report_id}`)
if (report_id) {
history.replace(`/tests/${test_id}/reports/${report_id}`)
}
}

if (prevProps.tests !== this.props.tests) {
Expand Down

0 comments on commit f54afe2

Please sign in to comment.