Skip to content

Commit

Permalink
Manifest data fix (#1284)
Browse files Browse the repository at this point in the history
* manifest-data-fix

* typo

* fine tuning

---------

Co-authored-by: vivgoodrich <vivian.goodrich@gmail.com>
  • Loading branch information
vgoodric and vivgoodrich authored Sep 18, 2023
1 parent 537b3ce commit 06d5a45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/features/personalization/personalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export async function getPersConfig(name, variantLabel, manifestData, manifestPa
placeholders = data.placeholders.data;
}

const persData = data?.data || data?.experiences?.data || data?.experiments?.data;
const persData = data?.experiences?.data || data?.data || data;
if (!persData) return null;
const config = parseConfig(persData);

Expand Down
2 changes: 1 addition & 1 deletion libs/martech/martech.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const handleAlloyResponse = (response) => {

return {
manifestPath: content.manifestLocation || content.manifestPath,
manifestData: content.manifestContent?.data,
manifestData: content.manifestContent?.experiences?.data || content.manifestContent?.data,
name: item.meta['activity.name'],
variantLabel: item.meta['experience.name'] && `target-${item.meta['experience.name']}`,
meta: item.meta,
Expand Down

0 comments on commit 06d5a45

Please sign in to comment.