File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/contentstack-variants/src/import Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,8 @@ export default class Experiences extends PersonalizationAdapter<ImportConfig> {
238238 try {
239239 const promises = this . pendingVariantAndVariantGrpForExperience . map ( async ( expUid ) => {
240240 const expRes = await this . getExperience ( expUid ) ;
241- if ( expRes ?. _cms && expRes ?. _cms ?. variantGroup && Object . keys ( expRes . _cms . variants ) . length > 0 ) {
241+ const variants = expRes ?. _cms ?. variants ?? { } ;
242+ if ( expRes ?. _cms && expRes ?. _cms ?. variantGroup && Object . keys ( variants ) . length > 0 ) {
242243 this . cmsVariants [ expUid ] = expRes . _cms ?. variants ?? { } ;
243244 this . cmsVariantGroups [ expUid ] = expRes . _cms ?. variantGroup ?? { } ;
244245 return expUid ; // Return the expUid for filtering later
You can’t perform that action at this time.
0 commit comments