Skip to content

Commit 575600f

Browse files
jaissica12rmi22186
andauthored
add a check to validate if productMapping is an object
Co-authored-by: Robert Ing <rmi22186@gmail.com>
1 parent 7ab307e commit 575600f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FacebookEventForwarder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375

376376
// Apply configured mappings to custom attributes
377377
productAttributeMapping.forEach(function(productMapping) {
378-
if (!productMapping || !productMapping.map || !productMapping.value) {
378+
if (!isObject(productMapping) || !productMapping.map || !productMapping.value) {
379379
return;
380380
}
381381

0 commit comments

Comments
 (0)