@websolutespa/bom-mixer-ui 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-mixer-ui
2
2
 
3
+ ## 1.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: Market & Language
8
+
3
9
  ## 1.8.0
4
10
 
5
11
  ### Minor Changes
package/dist/cjs/index.js CHANGED
@@ -10926,8 +10926,8 @@ const MarketsAndLanguagesDrawer = _ref => {
10926
10926
  href,
10927
10927
  alternates
10928
10928
  } = bomMixerHooks.usePage();
10929
- const items = markets.map(x => Object.assign(Object.assign({}, x), {
10930
- locales: x.languages && x.languages.length ? locales.filter(l => x.languages ? x.languages.includes(l.id) : true) : locales
10929
+ const items = markets.map(market => Object.assign(Object.assign({}, market), {
10930
+ locales: market.languages && market.languages.length ? locales.filter(l => market.languages ? market.languages.findIndex(language => bomCore.asEntityId(language) === l.id) !== -1 : true) : locales
10931
10931
  }));
10932
10932
  const getHref = React.useCallback((market, locale, currentMarket, currentLocale) => {
10933
10933
  const items = alternates || [];