From efc979c6a69d7d389c6e5d47445a494c4f27729f Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 9 Jan 2023 18:01:19 -0800 Subject: [PATCH] Fix bug that prevents selected join field to be used (#3213) (#3226) Remove setting join field even if it is already set. Signed-off-by: Vijayan Balasubramanian Signed-off-by: Vijayan Balasubramanian (cherry picked from commit 8c6f569985db1ceac10540fd4fc005ac26a5de31) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] --- src/plugins/region_map/public/region_map_visualization.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/region_map/public/region_map_visualization.js b/src/plugins/region_map/public/region_map_visualization.js index 101e4233ca72..81afee4671ca 100644 --- a/src/plugins/region_map/public/region_map_visualization.js +++ b/src/plugins/region_map/public/region_map_visualization.js @@ -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