Skip to content

Commit

Permalink
Merge pull request #1351 from sennetconsortium/libpitt/1245-job-queue
Browse files Browse the repository at this point in the history
Libpitt/1245 job queue
  • Loading branch information
maxsibilla authored Apr 10, 2024
2 parents 2703641 + b6ffd5f commit 583512d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useDataTableSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function useDataTableSearch({data, onKeydown, fieldsToSearch = [], className = '
const [resetPaginationToggle, setResetPaginationToggle] = useState(false);
const filteredItems = () => {
let results = []
if (!data || !Array.isArray(data)) return []
for (let searchIndex of fieldsToSearch) {
for (let d of data) {
if (d[searchIndex] && d[searchIndex]?.toLowerCase().includes(filterText?.toLowerCase())) {
Expand Down

0 comments on commit 583512d

Please sign in to comment.