From 4804110101c2d681dbd3dd879bc9f40a4a9a4fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guillois?= Date: Tue, 21 Jan 2025 10:31:38 +0100 Subject: [PATCH] fix: customizer in case of null --- frontend/src/models/Diff.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/models/Diff.tsx b/frontend/src/models/Diff.tsx index 7fb921a76..2dbb7e2ad 100644 --- a/frontend/src/models/Diff.tsx +++ b/frontend/src/models/Diff.tsx @@ -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);