From d52e5534406f9b06351f33dca82656aa9ac9b42c Mon Sep 17 00:00:00 2001 From: Jozef Marko Date: Tue, 10 Dec 2024 11:10:58 +0100 Subject: [PATCH] inline variable --- .../src/table/BeeTable/BeeTableBody.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/boxed-expression-component/src/table/BeeTable/BeeTableBody.tsx b/packages/boxed-expression-component/src/table/BeeTable/BeeTableBody.tsx index 2ab714207bf..a57ad9ea148 100644 --- a/packages/boxed-expression-component/src/table/BeeTable/BeeTableBody.tsx +++ b/packages/boxed-expression-component/src/table/BeeTable/BeeTableBody.tsx @@ -87,10 +87,9 @@ export function BeeTableBody({ reactTableInstance.prepareRow(row); const rowKey = getRowKey(row); - const isEvalationHitsCountSupportedByRow: boolean = supportsEvaluationHitsCount?.(row) ?? false; const rowEvaluationHitsCount = evaluationHitsCountById ? evaluationHitsCountById?.get(rowKey) ?? 0 : undefined; const canDisplayEvaluationHitsCountRowOverlay = - rowEvaluationHitsCount !== undefined && isEvalationHitsCountSupportedByRow === true; + rowEvaluationHitsCount !== undefined && (supportsEvaluationHitsCount?.(row) ?? false); const rowClassName = canDisplayEvaluationHitsCountRowOverlay ? rowKey + (rowEvaluationHitsCount > 0 ? " evaluation-hits-count-row-overlay" : "") : rowKey;