Skip to content

Commit

Permalink
OM-316: condition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
olewandowski1 committed Oct 15, 2024
1 parent a1ce8b3 commit 060708c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/WorkerSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function WorkerSearcher({ downloadWorkers, fetchWorkers: fetchWorkersAction, cle
};

useEffect(() => {
if (queryParams.length && (economicUnit || validationSuccess || validationWarning)) {
if (queryParams.length) {
fetchWorkers(queryParams);
}
}, [economicUnit, queryParams, validationSuccess, validationWarning]);
Expand Down

0 comments on commit 060708c

Please sign in to comment.