Skip to content

Commit

Permalink
move state update inside timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Abel Rodriguez committed Sep 21, 2023
1 parent 725c63f commit dd39899
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ export const PipelineExecutions = ({

setTimeout(() => {
console.log('setting timeout');
setIsRequestInProgress(false);
console.log("request completed");
}, 40000);

setIsRequestInProgress(false);
console.log("request completed");

setExecutions(resp);
setFilteredExecutions(filterExecutions(resp));
setStatusCount(getStatusCount(resp));
Expand Down

0 comments on commit dd39899

Please sign in to comment.