Skip to content

Commit

Permalink
Fix brush problem
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Nov 25, 2021
1 parent 2865d3f commit bbd96e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
import { ExpressionValueVisDimension } from '../../../../visualizations/common';

import { CustomPaletteState, PaletteOutput } from '../../../../charts/common';
// import { VisParams, visType } from './expression_renderers';
import {
EXPRESSION_HEATMAP_NAME,
EXPRESSION_HEATMAP_LEGEND_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,15 @@ const HeatmapComponent: FC<HeatmapRenderProps> = ({
});
});
}

(x as string[]).forEach((v) => {
points.push({
row: table.rows.findIndex((r) => r[xAxisColumn.id] === v),
column: xAxisColumnIndex,
value: v,
if (xAxisColumn) {
(x as string[]).forEach((v) => {
points.push({
row: table.rows.findIndex((r) => r[xAxisColumn.id] === v),
column: xAxisColumnIndex,
value: v,
});
});
});
}

const context: FilterEvent['data'] = {
data: points.map((point) => ({
Expand Down

0 comments on commit bbd96e1

Please sign in to comment.