Skip to content

Commit

Permalink
Fix bug that prevents selected join field to be used
Browse files Browse the repository at this point in the history
Remove setting join field even if it is already set.

Signed-off-by: Vijayan Balasubramanian <balasvij@amazon.com>
  • Loading branch information
VijayanB committed Jan 8, 2023
1 parent 68d503d commit fc0b703
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/plugins/region_map/public/region_map_visualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export function createRegionMapVisualization({
let selectedLayer;
if (DEFAULT_MAP_CHOICE === this._params.layerChosenByUser && this._params.selectedLayer) {
selectedLayer = await this._loadConfig(this._params.selectedLayer);
this._params.selectedJoinField = selectedLayer?.fields[0];
} else if (
CUSTOM_MAP_CHOICE === this._params.layerChosenByUser &&
this._params.selectedCustomLayer
Expand Down

0 comments on commit fc0b703

Please sign in to comment.