From 19d46246c72a79e653505c2df1bef4ad22e5c89f Mon Sep 17 00:00:00 2001 From: Vijayan Balasubramanian Date: Mon, 9 Jan 2023 14:16:35 -0800 Subject: [PATCH] Fix bug that prevents selected join field to be used (#3213) Remove setting join field even if it is already set. Signed-off-by: Vijayan Balasubramanian Signed-off-by: Vijayan Balasubramanian Signed-off-by: David Sinclair --- CHANGELOG.md | 1 + src/plugins/region_map/public/region_map_visualization.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9715989d08ef..83116432ce20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -88,6 +88,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - [MD] Update dummy url in tests to follow lychee url allowlist ([#3099](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3099)) - Adds config override to fix obsolete theme:version config value of v8 (beta) rendering issue ([#3045](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3045)) - [CI] Update test workflow to increase network-timeout for yarn for installing dependencies ([#3118](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3118)) +- [Region Maps] Fixes bug that prevents selected join field to be used ([#3213](Fix bug that prevents selected join field to be used)) ### 🚞 Infrastructure 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