diff --git a/plugins/catalog/src/alpha/filter/parseFilterExpression.ts b/plugins/catalog/src/alpha/filter/parseFilterExpression.ts index 71729c6a24c38..9775f16e51e03 100644 --- a/plugins/catalog/src/alpha/filter/parseFilterExpression.ts +++ b/plugins/catalog/src/alpha/filter/parseFilterExpression.ts @@ -123,11 +123,8 @@ export function splitFilterExpression( } const key = match[2]; const parameters = match[3].split(',').filter(Boolean); // silently ignore double commas - if (match[1]) { - result.push({ key, parameters, negation: true }); - } else { - result.push({ key, parameters, negation: false }); - } + const negation = Boolean(match[1]); + result.push({ key, parameters, negation }); } return result;