fix(frontend): check for field length when comparing edited member/user to current
This commit is contained in:
parent
f790c57447
commit
90667bc285
|
@ -88,6 +88,7 @@
|
||||||
|
|
||||||
const fieldsEqual = (arr1: Field[], arr2: Field[]) => {
|
const fieldsEqual = (arr1: Field[], arr2: Field[]) => {
|
||||||
if (arr1?.length !== arr2?.length) return false;
|
if (arr1?.length !== arr2?.length) return false;
|
||||||
|
if (!arr1.every((_, i) => arr1[i].entries.length === arr2[i].entries.length)) return false;
|
||||||
if (!arr1.every((_, i) => arr1[i].name === arr2[i].name)) return false;
|
if (!arr1.every((_, i) => arr1[i].name === arr2[i].name)) return false;
|
||||||
|
|
||||||
return arr1.every((_, i) =>
|
return arr1.every((_, i) =>
|
||||||
|
|
|
@ -75,6 +75,7 @@
|
||||||
|
|
||||||
const fieldsEqual = (arr1: Field[], arr2: Field[]) => {
|
const fieldsEqual = (arr1: Field[], arr2: Field[]) => {
|
||||||
if (arr1?.length !== arr2?.length) return false;
|
if (arr1?.length !== arr2?.length) return false;
|
||||||
|
if (!arr1.every((_, i) => arr1[i].entries.length === arr2[i].entries.length)) return false;
|
||||||
if (!arr1.every((_, i) => arr1[i].name === arr2[i].name)) return false;
|
if (!arr1.every((_, i) => arr1[i].name === arr2[i].name)) return false;
|
||||||
|
|
||||||
return arr1.every((_, i) =>
|
return arr1.every((_, i) =>
|
||||||
|
|
Loading…
Reference in New Issue