From 2f88020cb9b20487ca551727b745c054393b6f9e Mon Sep 17 00:00:00 2001 From: Gwynn Dandridge-Perry Date: Sun, 16 Jan 2022 23:03:30 -0800 Subject: [PATCH] fix: bug in capture filter when using >1 verify status (#301) --- src/context/CapturesContext.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/context/CapturesContext.js b/src/context/CapturesContext.js index 8e3aa7343..7b7e3683e 100644 --- a/src/context/CapturesContext.js +++ b/src/context/CapturesContext.js @@ -87,13 +87,12 @@ export function CapturesProvider(props) { where = []; verifyStatus.forEach((status) => { where.push({ - ...restFilter, active: status.active, approved: status.approved, }); }); } - return orCondition ? { or: where } : { ...where }; + return orCondition ? { ...restFilter, or: where } : { ...where }; }; const queryCapturesApi = ({ id = null, count = false, paramString = null }) =>