Skip to content

Commit

Permalink
unwanted api call removed from task loading in master branch (#1883)
Browse files Browse the repository at this point in the history
Co-authored-by: AbijithS-aot <[email protected]>
  • Loading branch information
AbijithS-aot and AbijithS-aot authored Feb 8, 2024
1 parent 3a6b23a commit 2978a0a
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,17 @@ const ServiceFlowTaskList = React.memo(() => {
);

useEffect(() => {
if (selectedFilter) {
if (selectedFilter?.id) {
const selectedBPMFilterParams = {
...selectedFilter,
criteria: {
...selectedFilter?.criteria,
...reqData?.criteria
}
};
dispatch(setBPMTaskLoader(true));
dispatch(setBPMTaskListActivePage(1));
dispatch(fetchServiceTaskList(reqData,null,firstResult));
dispatch(fetchServiceTaskList(selectedBPMFilterParams,null,firstResult));
}
}, [reqData]);

Expand Down

0 comments on commit 2978a0a

Please sign in to comment.