From ddfdae8f933e78e66e3c860dbd3d03c41eeedbae Mon Sep 17 00:00:00 2001 From: mbayopanda Date: Wed, 26 Jan 2022 12:10:51 +0100 Subject: [PATCH] Remove duplicated filters on the server --- .../stock/reports/stock/assignment/stock_assign.registry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/stock/reports/stock/assignment/stock_assign.registry.js b/server/controllers/stock/reports/stock/assignment/stock_assign.registry.js index f4d640bc41..24a8acf214 100644 --- a/server/controllers/stock/reports/stock/assignment/stock_assign.registry.js +++ b/server/controllers/stock/reports/stock/assignment/stock_assign.registry.js @@ -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,