Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ModernTaxonomyPicker used language by checking for supported term… #1576

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

Zhephyr54
Copy link
Contributor

… store languages

Q A
Bug fix? [ X]
New feature? [ ]
New sample? [ ]
Related issues? fixes #1573

What's in this Pull Request?

Changing how the language used by the ModernTaxonomyPicker is set by checking the currentUICultureName against the termStoreInfo.languageTags array and use currentTermStoreInfo.defaultLanguageTag if the current UI language is not supported (= not inside the termStoreInfo.languageTags array) by the term store.
I also noticed that the currentTermStoreInfo state was used directly after being set (it would be undefined because state update is asynchronous) which must have caused another bug if the currentUICultureName wasn't available. So I used the fetched termStoreInfo instead of the state.

Thanks!

@joelfmrodrigues joelfmrodrigues merged commit 80c468d into pnp:dev Jul 6, 2023
1 check passed
@joelfmrodrigues
Copy link
Collaborator

@Zhephyr54 many thanks, this is now merged

@joelfmrodrigues joelfmrodrigues added this to the 3.15.0 milestone Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants