Skip to content

Commit

Permalink
Merge pull request #1101 from MTES-MCT/fix-fiche-logement
Browse files Browse the repository at this point in the history
fix: customizer in case of null
  • Loading branch information
loicguillois authored Jan 21, 2025
2 parents 6180e50 + 4804110 commit 61ee6e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/models/Diff.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function customizer(a?: any, b?: any) {
}
if (Array.isArray(a) && Array.isArray(b)) {
return fp.isEqual(
a.map((_) => _.toUpperCase()),
b.map((_) => _.toUpperCase())
a.map((_) => _?.toUpperCase()),
b.map((_) => _?.toUpperCase())
);
}
return fp.isEqual(a, b);
Expand Down

0 comments on commit 61ee6e8

Please sign in to comment.