fix(frontend): deepEqualの片方がnull/undefinedな場合の判定が正しくないのを修正

This commit is contained in:
syuilo 2026-06-03 14:51:40 +09:00 committed by GitHub
commit 2e1594245b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,8 +10,9 @@ export function deepEqual(a: JsonLike, b: JsonLike): boolean {
if (typeof a !== typeof b) return false;
if (a === null) return b === null;
if (a === undefined) return b === undefined;
if (b === null) return false;
if (b === undefined) return false;
if (Array.isArray(a) && Array.isArray(b)) {
if (a.length !== b.length) return false;