Skip to content

Commit

Permalink
Merge pull request #232 from adobecom/actually-stabilize-events
Browse files Browse the repository at this point in the history
fix(mwpw-166139): fixing event sort
  • Loading branch information
sheridansunier authored Jan 29, 2025
2 parents 09567dd + 83768f7 commit 0911d23
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/app.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Chimera UI Libraries - Build 0.28.1 (1/29/2025, 11:57:20)
* Chimera UI Libraries - Build 0.28.3 (1/29/2025, 14:06:33)
*
*/
/******/ (function(modules) { // webpackBootstrap
Expand Down Expand Up @@ -2474,8 +2474,8 @@ var getEventSort = exports.getEventSort = function getEventSort() {
var transformedCards = cards.map(function (card) {
return {
id: card.id,
startDate: safeGet(card, 'contentArea.dateDetailText.startTime', safeGet(card, 'footer[0].left[1].startTime', '')),
endDate: safeGet(card, 'contentArea.dateDetailText.endTime', safeGet(card, 'footer[0].left[1].endTime', '')),
startDate: safeGet(card, 'footer[0].left[1].startTime', safeGet(card, 'contentArea.dateDetailText.startTime', '')),
endDate: safeGet(card, 'footer[0].left[1].endTime', safeGet(card, 'contentArea.dateDetailText.endTime', '')),
tags: card.tags || [],
cardDate: card.cardDate || '',
contentArea: card.contentArea || {},
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.

4 changes: 2 additions & 2 deletions react/src/js/components/Consonant/Helpers/Helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ function safeGet(obj, pathString, defaultVal) {
export const getEventSort = (cards = [], eventFilter) => {
const transformedCards = cards.map(card => ({
id: card.id,
startDate: safeGet(card, 'contentArea.dateDetailText.startTime', safeGet(card, 'footer[0].left[1].startTime', '')),
endDate: safeGet(card, 'contentArea.dateDetailText.endTime', safeGet(card, 'footer[0].left[1].endTime', '')),
startDate: safeGet(card, 'footer[0].left[1].startTime', safeGet(card, 'contentArea.dateDetailText.startTime', '')),
endDate: safeGet(card, 'footer[0].left[1].endTime', safeGet(card, 'contentArea.dateDetailText.endTime', '')),
tags: card.tags || [],
cardDate: card.cardDate || '',
contentArea: card.contentArea || {},
Expand Down

0 comments on commit 0911d23

Please sign in to comment.