Skip to content

Commit

Permalink
fix(ESSNTL-3718): Wrap group names in brackets (#1985)
Browse files Browse the repository at this point in the history
Fixes https://issues.redhat.com/browse/ESSNTL-3718.

Fixes improper group_name filter constructiong in gq filter.
  • Loading branch information
gkarat authored Aug 30, 2023
1 parent bacafa0 commit 6e43410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SmartComponents/SystemsTable/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const buildApiFilters = (filters = {}) => {
// filtering by group_name is enabled in gq filter
if (hostGroupFilter !== undefined && Array.isArray(hostGroupFilter)) {
otherFilters.filter = `(${hostGroupFilter
.map((value) => `group_name = ${value}`)
.map((value) => `group_name = "${value}"`)
.join(' or ')})`;
}

Expand Down

0 comments on commit 6e43410

Please sign in to comment.