From 00ced19bf2f0773e30e2a5061fbe60379d394b52 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Wed, 25 Sep 2024 16:18:27 +0530 Subject: [PATCH] fix: snyk issues --- packages/contentstack-variants/src/import/experiences.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack-variants/src/import/experiences.ts b/packages/contentstack-variants/src/import/experiences.ts index 2021f5179b..763c0f929d 100644 --- a/packages/contentstack-variants/src/import/experiences.ts +++ b/packages/contentstack-variants/src/import/experiences.ts @@ -162,7 +162,7 @@ export default class Experiences extends PersonalizationAdapter { * function import experience versions from a JSON file and creates them in the project. */ async importExperienceVersions(experience: ExperienceStruct, oldExperienceUid: string) { - const versionsPath = resolve(sanitizePath(this.experiencesDirPath), 'versions', `${oldExperienceUid}.json`); + const versionsPath = resolve(sanitizePath(this.experiencesDirPath), 'versions', `${sanitizePath(oldExperienceUid)}.json`); if (!existsSync(versionsPath)) { return;