Skip to content

Commit

Permalink
MWPW-145171: mep fix for replace action (#2058)
Browse files Browse the repository at this point in the history
  • Loading branch information
3ch023 authored Mar 21, 2024
1 parent 107c779 commit 5ee02af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/features/personalization/personalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ export async function applyPers(manifests) {
const config = getConfig();

if (!manifests?.length) return;
if (!config?.mep) config.mep = {};
config.mep.handleFragmentCommand = handleFragmentCommand;
let experiments = manifests;
for (let i = 0; i < experiments.length; i += 1) {
experiments[i] = await getPersConfig(experiments[i], config.mep?.override);
Expand Down Expand Up @@ -788,7 +790,5 @@ export async function applyPers(manifests) {
const val = r.experiment?.manifestOverrideName || r.experiment?.manifest;
return getFileName(val).replace('.json', '').trim().slice(0, 15);
});
if (!config?.mep) config.mep = {};
config.mep.martech = `|${pznVariants.join('--')}|${pznManifests.join('--')}`;
config.mep.handleFragmentCommand = handleFragmentCommand;
}

0 comments on commit 5ee02af

Please sign in to comment.