Skip to content

Commit

Permalink
fixing region map click filter (#61949)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar authored Apr 8, 2020
1 parent 5218e30 commit d212102
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ export function createRegionMapVisualization({ serviceSettings, $injector, uiSet
}

this._choroplethLayer.on('select', event => {
const rowIndex = this._chartData.rows.findIndex(row => row[0] === event);
const { rows, columns } = this._chartData;
const rowIndex = rows.findIndex(row => row[columns[0].id] === event);
this._vis.API.events.filter({
table: this._chartData,
column: 0,
Expand Down

0 comments on commit d212102

Please sign in to comment.