Skip to content

Commit 6acad6a

Browse files
committed
changed to also utilize the data attribute when looking up the container
1 parent 444e748 commit 6acad6a

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

dist/breinify-recommendations.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,12 +1026,20 @@
10261026
} else if (type === 'com.brein.common.dto.CustomerAssetsDto') {
10271027
activityTags.assetIds = [];
10281028
activityTags.assetIds.push(id);
1029+
1030+
const name = Breinify.UTL.isNonEmptyString(recommendation?.additionalData?.['assets::assetTitle'] ?? null);
1031+
activityTags.assetNames = [];
1032+
activityTags.assetNames.push(name);
10291033
} else if (type === 'com.brein.common.dto.CustomerProductDto') {
10301034
activityTags.productIds = [];
10311035
activityTags.productIds.push(id);
1036+
1037+
const name = Breinify.UTL.isNonEmptyString(recommendation?.additionalData?.['product::productName'] ?? null);
1038+
activityTags.productNames = [];
1039+
activityTags.productNames.push(name);
10321040
} else {
10331041

1034-
// by default, we still bind the data to productIds
1042+
// by default, we still bind the id to productIds
10351043
activityTags.productIds = [];
10361044
activityTags.productIds.push(id);
10371045
}

0 commit comments

Comments
 (0)