Skip to content

Commit

Permalink
fix(mwpw-136002): fixes featured card sort if toggled after initial p…
Browse files Browse the repository at this point in the history
…age load

this bug was due to change with hashing payloads from BE

MWPW-136002
  • Loading branch information
sanrai committed Sep 6, 2023
1 parent bf088ea commit b7738ab
Show file tree
Hide file tree
Showing 7 changed files with 3,769 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dist/app.css

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions dist/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Chimera UI Libraries - Build 0.7.3 (9/1/2023, 13:59:06)
* Chimera UI Libraries - Build 0.8.0 (9/5/2023, 17:01:41)
*
*/
/******/ (function(modules) { // webpackBootstrap
Expand Down Expand Up @@ -6420,7 +6420,15 @@ var Container = function Container(props) {
var defaultSort = getConfig('sort', 'defaultSort');
var defaultSortOption = (0, _consonant.getDefaultSortOption)(config, defaultSort);
var featuredCards = getConfig('featuredCards', '').toString().replace(/\[|\]/g, '').replace(/`/g, '').split(',');
// eslint-disable-next-line no-use-before-define,max-len
featuredCards = featuredCards.concat(featuredCards.map(function (id) {
return rollingHash(id, CARD_HASH_LENGTH);
}));
var hideCtaIds = getConfig('hideCtaIds', '').toString().replace(/\[|\]/g, '').replace(/`/g, '').split(',');
// eslint-disable-next-line no-use-before-define
hideCtaIds = hideCtaIds.concat(hideCtaIds.map(function (id) {
return rollingHash(id, CARD_HASH_LENGTH);
}));
var hideCtaTags = getConfig('hideCtaTags', '').toString().replace(/\[|\]/g, '').replace(/`/g, '').split(',');
var leftPanelSearchPlaceholder = getConfig('search', 'i18n.leftFilterPanel.searchPlaceholderText');
var topPanelSearchPlaceholder = getConfig('search', 'i18n.topFilterPanel.searchPlaceholderText');
Expand Down Expand Up @@ -7300,12 +7308,6 @@ var Container = function Container(props) {
}
}

featuredCards = featuredCards.map(function (id) {
return rollingHash(id, CARD_HASH_LENGTH);
});
hideCtaIds = hideCtaIds.map(function (id) {
return rollingHash(id, CARD_HASH_LENGTH);
});
var temp = [];
var _iteratorNormalCompletion2 = true;
var _didIteratorError2 = false;
Expand Down
4 changes: 2 additions & 2 deletions dist/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.source.js

Large diffs are not rendered by default.

Loading

0 comments on commit b7738ab

Please sign in to comment.