Skip to content

Commit

Permalink
fixed rescan observable
Browse files Browse the repository at this point in the history
  • Loading branch information
carellamartina committed Apr 4, 2024
1 parent f342279 commit c5e94d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/components/jobs/result/bar/JobActionBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function JobActionsBar({ job }) {
);
} else {
addToast("Retrying the same job...", null, "spinner", false, 2000);
const jobId = await createJob(
const response = await createJob(
[job.observable_name],
job.observable_classification,
job.playbook_requested,
Expand All @@ -76,7 +76,10 @@ export function JobActionsBar({ job }) {
0,
);
setTimeout(
() => navigate(`/jobs/${jobId[0]}/${JobResultSections.VISUALIZER}/`),
() =>
navigate(
`/jobs/${response.jobIds[0]}/${JobResultSections.VISUALIZER}/`,
),
1000,
);
}
Expand Down

0 comments on commit c5e94d3

Please sign in to comment.