Skip to content

Commit

Permalink
fix: bug in capture filter when using >1 verify status (Greenstand#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynndp authored Jan 17, 2022
1 parent 3c7f1f4 commit 2f88020
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/context/CapturesContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) =>
Expand Down

0 comments on commit 2f88020

Please sign in to comment.