Skip to content

Commit c48608a

Browse files
committed
fixing region map click filter
1 parent ef72135 commit c48608a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/legacy/core_plugins/region_map/public/region_map_visualization.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ export function createRegionMapVisualization({ serviceSettings, $injector, uiSet
164164
}
165165

166166
this._choroplethLayer.on('select', event => {
167-
const rowIndex = this._chartData.rows.findIndex(row => row[0] === event);
167+
const { rows, columns } = this._chartData;
168+
const rowIndex = rows.findIndex(row => row[columns[0].id] === event);
168169
this._vis.API.events.filter({
169170
table: this._chartData,
170171
column: 0,

0 commit comments

Comments
 (0)