Skip to content

Commit

Permalink
fix mutation length changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rnystrom committed Sep 17, 2024
1 parent 8213243 commit b11377f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/normy/src/create-normalizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ const isMutationObjectDifferent = (
return normalizedData.length !== 0;
}

if (mutationData.length !== normalizedData.length) {
return true;
}

return mutationData.some((v, i) =>
isMutationObjectDifferent(v, (normalizedData as Data[])[i]),
);
Expand Down

0 comments on commit b11377f

Please sign in to comment.