Skip to content

Commit

Permalink
fix: customizer in case of null
Browse files Browse the repository at this point in the history
  • Loading branch information
loicguillois authored and Falinor committed Jan 21, 2025
1 parent 6180e50 commit 4804110
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 4804110

Please sign in to comment.