Skip to content

Commit

Permalink
[8.x] [Console] Fix small bug with copy as (#206059) (#206546)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Console] Fix small bug with copy as
(#206059)](#206059)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ignacio
Rivas","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-14T08:18:35Z","message":"[Console]
Fix small bug with copy as
(#206059)","sha":"a394ea18e682336414b137edfec1cdca1249e211","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Console","Team:Kibana
Management","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Console]
Fix small bug with copy
as","number":206059,"url":"https://github.com/elastic/kibana/pull/206059","mergeCommit":{"message":"[Console]
Fix small bug with copy as
(#206059)","sha":"a394ea18e682336414b137edfec1cdca1249e211"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206059","number":206059,"mergeCommit":{"message":"[Console]
Fix small bug with copy as
(#206059)","sha":"a394ea18e682336414b137edfec1cdca1249e211"}}]}]
BACKPORT-->

Co-authored-by: Ignacio Rivas <[email protected]>
  • Loading branch information
kibanamachine and sabarasaba authored Jan 14, 2025
1 parent 04cfdce commit 7ee58f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const LanguageSelectorModal = ({
const language = selectedOption?.key || selectedLanguage;

// If the default language is changed, update the local storage setting
if (currentLanguage !== language) {
if (currentLanguage !== selectedLanguage) {
changeDefaultLanguage(selectedLanguage);
}

Expand Down

0 comments on commit 7ee58f8

Please sign in to comment.