Skip to content

Commit

Permalink
Merge branch 'main' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
sharanyavinod committed May 30, 2024
2 parents 8578fce + 7dbba0c commit bb90fb8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions build/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@adobe/aem-headless-client-js": "^3.1.0",
"@adobe/aem-headless-client-nodejs": "^1.1.0",
"@adobe/universal-editor-cors": "^2.2.16",
"@adobe/universal-editor-cors": "2.3.3",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
7 changes: 3 additions & 4 deletions src/components/AdventureDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ function NoAdventureFound() {
function getAdventure(data) {

if (data && data.adventureList && data.adventureList.items) {
// expect there only to be a single adventure in the array
if (data.adventureList.items.length === 1) {
return data.adventureList.items[0];
}
return data.adventureList.items.find(item => {
return item._path.startsWith("/content/dam/wknd-shared/en");
});
}
return undefined;
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@
resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.2.0.tgz#e1a84fca468f4b337816fcb7f0964beb620ba855"
integrity sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==

"@adobe/universal-editor-cors@^2.2.16":
version "2.2.16"
resolved "https://registry.yarnpkg.com/@adobe/universal-editor-cors/-/universal-editor-cors-2.2.16.tgz#16475695eaeff5ac6b13da72ebfd3ed48a81d4d2"
integrity sha512-n78JSjJmO2quqwShKllOjgv7GwFhkd74PxxjHGkLv4cNRV+3uvYGjVySsKvd6973pEPJUS2BTzIWPnzIre7uyw==
"@adobe/universal-editor-cors@2.3.3":
version "2.3.3"
resolved "https://registry.yarnpkg.com/@adobe/universal-editor-cors/-/universal-editor-cors-2.3.3.tgz#be9bfb4883d4ae16307b69d69cd258a0ff0d9d4f"
integrity sha512-3jg5p+YE5KmWRbcvf5ugZOtEovITdHpQ/v4qM3UwzxOHBDqoTy1GCnG8Gc9/qJTfxBdZhmtZPDigedFn6PCScQ==

"@ampproject/remapping@^2.2.0":
version "2.2.1"
Expand Down

1 comment on commit bb90fb8

@comanV
Copy link
Collaborator

@comanV comanV commented on bb90fb8 May 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.