Skip to content

Commit

Permalink
[DX-1781] - added consoles to check the error
Browse files Browse the repository at this point in the history
  • Loading branch information
naman-contentstack committed Dec 9, 2024
1 parent 893abc0 commit 68d64b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/contentstack-variants/src/import/experiences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ export default class Experiences extends PersonalizationAdapter<ImportConfig> {
try {
const promises = this.pendingVariantAndVariantGrpForExperience.map(async (expUid) => {
const expRes = await this.getExperience(expUid);
if (expRes?._cms && expRes?._cms?.variantGroup && expRes?._cms?.variants) {
console.log('πŸš€ ~ Experiences ~ promises ~ expRes:', expRes._cms.variants);
console.log('πŸš€ ~ Experiences ~ promises ~ expRes:', expRes._cms.variantGroup);
if (expRes?._cms && expRes?._cms?.variantGroup && Object.keys(expRes._cms.variants).length > 0) {
console.log('πŸš€ ~ Experiences ~ promises ~ expRes:Variant', expRes._cms.variants);
console.log('πŸš€ ~ Experiences ~ promises ~ expRes:Group', expRes._cms.variantGroup);

this.cmsVariants[expUid] = expRes._cms?.variants ?? {};
this.cmsVariantGroups[expUid] = expRes._cms?.variantGroup ?? {};
Expand Down

0 comments on commit 68d64b0

Please sign in to comment.