Skip to content

Commit ce1ccc1

Browse files
committed
fix(sync-actions): fix categoryOrderHints generated actions when no change happen
1 parent 6ec71c8 commit ce1ccc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,9 @@ export function actionsMapCategories(diff) {
490490

491491
export function actionsMapCategoryOrderHints(diff) {
492492
if (!diff.categoryOrderHints) return []
493-
// Here we should ignore this pattern as its still no changes happened [{},0,0]
493+
// Ignore this pattern as its means no changes happened [{},0,0]
494+
if (Array.isArray(diff.categoryOrderHints)) return []
495+
494496
return Object.keys(diff.categoryOrderHints).map((categoryId) => {
495497
const hintChange = diff.categoryOrderHints[categoryId]
496498

0 commit comments

Comments
 (0)