Skip to content

Commit

Permalink
wf-details: remove additional fetchWorkflow call
Browse files Browse the repository at this point in the history
After a hard wf-details refresh it was noticed that fetchWorkflow
request is being called twice. This commit fixes this issue
  • Loading branch information
audrium committed Nov 24, 2022
1 parent c0c39bc commit 1a3656f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion reana-ui/src/pages/workflowDetails/WorkflowDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default function WorkflowDetails() {
}, [dispatch, workflowId]);

useEffect(() => {
dispatch(fetchWorkflow(workflowId));
if (!interval.current && pollingSecs) {
interval.current = setInterval(refetchWorkflow, pollingSecs * 1000);
}
Expand Down

0 comments on commit 1a3656f

Please sign in to comment.