Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Fix bug that prevents selected join field to be used (opensearch-proj…
Browse files Browse the repository at this point in the history
…ect#3213)

Remove setting join field even if it is already set.

Signed-off-by: Vijayan Balasubramanian <[email protected]>

Signed-off-by: Vijayan Balasubramanian <[email protected]>
Signed-off-by: David Sinclair <[email protected]>
  • Loading branch information
VijayanB authored and sikhote committed Apr 24, 2023
1 parent ddb5ca3 commit 19d4624
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
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 19d4624

Please sign in to comment.