Skip to content

Commit aaa9c4f

Browse files
committed
3807 - let ArrayProperty handle Array properties that are subproperties of ObjectProperty
1 parent 5c7a007 commit aaa9c4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/pages/platform/workflow-editor/components/properties/ObjectProperty.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ const ObjectProperty = ({arrayIndex, arrayName, onDeleteClick, operationName, pa
168168
if (dynamicKey.startsWith(pathPrefix)) {
169169
const subPropertyName = dynamicKey.substring(pathPrefix.length);
170170

171-
if (subPropertyName && !subPropertyName.includes('.')) {
171+
const isArrayIndexPattern = /\[\d+\]/.test(subPropertyName);
172+
173+
if (subPropertyName && !subPropertyName.includes('.') && !isArrayIndexPattern) {
172174
if (!subPropertyKeySet.has(subPropertyName)) {
173175
orderedKeys.push(subPropertyName);
174176

0 commit comments

Comments
 (0)