Skip to content

Commit

Permalink
fix: fix incorrect comparsion
Browse files Browse the repository at this point in the history
Signed-off-by: ROOMrepair <[email protected]>
  • Loading branch information
ROOMrepair committed Dec 10, 2024
1 parent 5334cd2 commit 5196d68
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ function PropertiesInput({
empty = true;
}

let valueSize = Object.keys(selfValue).length;
// todo
// arrayValue is not synchronized with selfvalue
// after each modification may cause potential issues
let valueSize = newArrayValues.length;
if (valueSize !== arrayValues.length || empty) {
setArrayValues(newArrayValues);
}
Expand Down

0 comments on commit 5196d68

Please sign in to comment.