Skip to content

Commit

Permalink
Remove duplicated filters on the server
Browse files Browse the repository at this point in the history
  • Loading branch information
mbayopanda committed Jan 26, 2022
1 parent 90f5c2d commit ddfdae8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function stockAssignRegistry(req, res, next) {

return stockAssign.find(params)
.then(rows => {
const filters = formatFilters(params);
const filters = _.uniqBy(formatFilters(params), 'field');
const data = {
enterprise : req.session.enterprise,
rows,
Expand Down

0 comments on commit ddfdae8

Please sign in to comment.