Skip to content

Commit 9ebc90d

Browse files
authored
Merge pull request #1549 from contentstack/next-feature-update
updated ct structure
2 parents 394cb95 + 5fc1aee commit 9ebc90d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/contentstack-variants/src/import/experiences.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ export default class Experiences extends PersonalizationAdapter<ImportConfig> {
185185
Object.entries(this.experiencesUidMapper).map(async ([oldExpUid, newExpUid]) => {
186186
if (experienceCTsMap[oldExpUid]?.length) {
187187
// Filter content types that were created
188-
const updatedContentTypes = experienceCTsMap[oldExpUid].filter((ct: string) =>
189-
this.createdCTs.includes(ct),
188+
const updatedContentTypes = experienceCTsMap[oldExpUid].filter((ct: any) =>
189+
this.createdCTs.includes(ct?.uid),
190190
);
191191
if (updatedContentTypes?.length) {
192192
const { variant_groups: [variantGroup] = [] } =

0 commit comments

Comments
 (0)