From a82cbe970a558e85315b79e35615e4b4ad817685 Mon Sep 17 00:00:00 2001 From: Aditya Hegde Date: Mon, 29 Jan 2024 13:16:30 +0530 Subject: [PATCH] Fix filter not applying in dimension table (#3921) --- .../dashboards/dimension-table/dimension-table-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-common/src/features/dashboards/dimension-table/dimension-table-utils.ts b/web-common/src/features/dashboards/dimension-table/dimension-table-utils.ts index f1cbd10d35e..c3e2b5229c5 100644 --- a/web-common/src/features/dashboards/dimension-table/dimension-table-utils.ts +++ b/web-common/src/features/dashboards/dimension-table/dimension-table-utils.ts @@ -72,8 +72,8 @@ export function updateFilterOnSearch( filterExpressions( filterForDimension, (e) => - e.cond?.op === V1Operation.OPERATION_LIKE || - e.cond?.op === V1Operation.OPERATION_NLIKE, + e.cond?.op !== V1Operation.OPERATION_LIKE && + e.cond?.op !== V1Operation.OPERATION_NLIKE, ) ?? createAndExpression([]); } return filterForDimension;