Browse Source

Change searchQuery filter from id to uniqueId

Using id instead of uniqueId meant that only a single entry would show
up in the list despite there being duplicates
master
jeffvli 3 years ago
parent
commit
4b7a972cdc
  1. 2
      src/hooks/useSearchQuery.ts

2
src/hooks/useSearchQuery.ts

@ -17,7 +17,7 @@ const useSearchQuery = (searchQuery: string, data: any[], filterProperties: stri
return filteredDataByProp.map((entry) => matches.push(entry));
});
setFilteredData(_.uniqBy(matches, 'id'));
setFilteredData(_.uniqBy(matches, 'uniqueId'));
} else {
setFilteredData([]);
}

Loading…
Cancel
Save