Skip to content

Commit

Permalink
fix: snyk issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aman19K committed Sep 25, 2024
1 parent a155ae7 commit 00ced19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contentstack-variants/src/import/experiences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default class Experiences extends PersonalizationAdapter<ImportConfig> {
* 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;
Expand Down

0 comments on commit 00ced19

Please sign in to comment.