forked from mirrors/misskey
fix(frontend): deepEqualの片方がnull/undefinedな場合の判定が正しくないのを修正
This commit is contained in:
parent
e50603e30b
commit
2e1594245b
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue