Skip to content

Commit 9a4c036

Browse files
chore(products): add comments
1 parent 0b8ac89 commit 9a4c036

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/sync-actions/src/product-actions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ function _buildSetAttributeAction(
174174
attribute,
175175
sameForAllAttributeNames
176176
) {
177+
// in the case of diffedValue being null or undefined, _buildAttributeValue will fail.
177178
if (!attribute || !diffedValue) return undefined
178179

179180
let action = {
@@ -218,6 +219,7 @@ function _buildSetProductAttributeAction(
218219
oldProductData,
219220
newAttribute
220221
) {
222+
// in the case of diffedValue being null or undefined, _buildAttributeValue will fail.
221223
if (!newAttribute || !diffedValue) return undefined
222224

223225
const action = {

0 commit comments

Comments
 (0)