Skip to content

Commit

Permalink
Merge pull request #1549 from contentstack/next-feature-update
Browse files Browse the repository at this point in the history
updated ct structure
  • Loading branch information
cs-raj authored Sep 6, 2024
2 parents 536e219 + 6cbd564 commit ac81820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contentstack-variants/src/import/experiences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ export default class Experiences extends PersonalizationAdapter<ImportConfig> {
Object.entries(this.experiencesUidMapper).map(async ([oldExpUid, newExpUid]) => {
if (experienceCTsMap[oldExpUid]?.length) {
// Filter content types that were created
const updatedContentTypes = experienceCTsMap[oldExpUid].filter((ct: string) =>
this.createdCTs.includes(ct),
const updatedContentTypes = experienceCTsMap[oldExpUid].filter((ct: any) =>
this.createdCTs.includes(ct?.uid),
);
if (updatedContentTypes?.length) {
const { variant_groups: [variantGroup] = [] } =
Expand Down

0 comments on commit ac81820

Please sign in to comment.