Skip to content

Commit

Permalink
fix(RHINENG-11227): Prevent sending both true and false for incident …
Browse files Browse the repository at this point in the history
…filter

- The backend responds with a 400 BadRequest if both true and false are sent to it
  • Loading branch information
mhuth committed Jul 22, 2024
1 parent 5e55d60 commit 4e53a15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PresentationalComponents/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export const createOptions = (
systemsPage
) => {
const osFilter = filters.osFilter && buildOsFilter(filters.osFilter);
// RHINENG-11227: remove system incident filter if it has multiple elements, which will be both
// 'true' and 'false', because it will result in a 400 BadRequest from the API
advisorFilters.incident?.length > 1 && delete advisorFilters.incident;
const options = {
...advisorFilters,
limit: per_page,
Expand Down

0 comments on commit 4e53a15

Please sign in to comment.