Skip to content

Commit

Permalink
Merge pull request #15 from openimis/hotfix/picker
Browse files Browse the repository at this point in the history
hotfix: fix picker condition
  • Loading branch information
malinowskikam authored Dec 14, 2023
2 parents 4df3b08 + 5a985ad commit cd707fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pickers/WorkerMultiplePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function WorkerMultiplePicker({
}, [previousWorkersChecked, data]);

const filterOptions = (options) => {
if (!searchString && (!previousWorkersChecked && searchString.length < WORKER_THRESHOLD)) {
if (!previousWorkersChecked && searchString.length < WORKER_THRESHOLD) {
return [];
}

Expand Down

0 comments on commit cd707fd

Please sign in to comment.