Skip to content

Commit

Permalink
inline variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jomarko committed Dec 10, 2024
1 parent 19e8b23 commit d52e553
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ export function BeeTableBody<R extends object>({
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;
Expand Down

0 comments on commit d52e553

Please sign in to comment.