Skip to content

Commit f8a6616

Browse files
committed
feat(sync-actions): remove conditional to check for action
1 parent 833ee1b commit f8a6616

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/sync-actions/src/products.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ function createProductMapActions (mapActionGroup) {
3838
allActions.push(mapActionGroup('variants', () =>
3939
productActions.actionsMapVariants(diff, oldObj, newObj)))
4040

41-
const changeMasterVariantActions =
42-
productActions.actionsMapMasterVariant(oldObj, newObj)
43-
if (changeMasterVariantActions.length > 0)
44-
allActions.push(changeMasterVariantActions)
41+
allActions.push(productActions.actionsMapMasterVariant(oldObj, newObj))
4542

4643
allActions.push(mapActionGroup('attributes', () =>
4744
productActions.actionsMapAttributes(diff, oldObj, newObj,

0 commit comments

Comments
 (0)