From e6e360652b9270070089b0949abd408124c57e1d Mon Sep 17 00:00:00 2001 From: simon louvet Date: Sat, 5 Aug 2023 12:54:14 +0200 Subject: [PATCH] apply some to every to filter params --- .../src/dataProvider/utils/fetchContainers.js | 2 +- src/middleware/tests/.gitignore | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/packages/semantic-data-provider/src/dataProvider/utils/fetchContainers.js b/src/frontend/packages/semantic-data-provider/src/dataProvider/utils/fetchContainers.js index e3a57572c..706e58895 100644 --- a/src/frontend/packages/semantic-data-provider/src/dataProvider/utils/fetchContainers.js +++ b/src/frontend/packages/semantic-data-provider/src/dataProvider/utils/fetchContainers.js @@ -62,7 +62,7 @@ const fetchContainers = async (containers, resourceId, params, config) => { if (Object.keys(params.filter).length > 0) { returnData = returnData.filter(resource => { - return Object.entries(params.filter).some(([k, v]) => { + return Object.entries(params.filter).every(([k, v]) => { if (k == 'q') { return Object.entries(resource).some(([kr, vr]) => { if (!isobject(vr)) { diff --git a/src/middleware/tests/.gitignore b/src/middleware/tests/.gitignore index f59531a58..25c465420 100644 --- a/src/middleware/tests/.gitignore +++ b/src/middleware/tests/.gitignore @@ -5,7 +5,7 @@ */jwt/*.key */jwt/*.key.pub -*/actors/*.key -*/actors/*.key.pub -*/jwt/*.key -*/jwt/*.key.pub +/actors/*.key +/actors/*.key.pub +/jwt/*.key +/jwt/*.key.pub