From 5196d680cebfb9b00a25566080cef269144ea5ff Mon Sep 17 00:00:00 2001 From: ROOMrepair Date: Tue, 10 Dec 2024 16:24:33 +0800 Subject: [PATCH] fix: fix incorrect comparsion Signed-off-by: ROOMrepair --- .../shared/src/components/Inputs/PropertiesInput/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/shared/src/components/Inputs/PropertiesInput/index.tsx b/packages/shared/src/components/Inputs/PropertiesInput/index.tsx index 46080fccbcc..7668d2dcf0f 100644 --- a/packages/shared/src/components/Inputs/PropertiesInput/index.tsx +++ b/packages/shared/src/components/Inputs/PropertiesInput/index.tsx @@ -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); }