From d48b35b8010c109dd509367e632f1b7f865bb015 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 18 Nov 2025 12:42:13 +0000 Subject: [PATCH 1/2] Initial plan From 05117f37943b99670f133934e7e312de423c3c86 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 18 Nov 2025 12:48:34 +0000 Subject: [PATCH 2/2] Fix eslint-plugin-react-hooks v7 immutability errors Co-authored-by: barmac <28307541+barmac@users.noreply.github.com> --- .../camunda-platform/properties/FormField.js | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/provider/camunda-platform/properties/FormField.js b/src/provider/camunda-platform/properties/FormField.js index 41deb4e9a..3bc4cf49a 100644 --- a/src/provider/camunda-platform/properties/FormField.js +++ b/src/provider/camunda-platform/properties/FormField.js @@ -424,8 +424,9 @@ function ConstraintList(props) { const commands = []; // (1) ensure validation - if (!validation) { - validation = createElement( + let ensuredValidation = validation; + if (!ensuredValidation) { + ensuredValidation = createElement( 'camunda:Validation', { }, businessObject, @@ -437,7 +438,7 @@ function ConstraintList(props) { context: { element, moddleElement: formField, - properties: { validation } + properties: { validation: ensuredValidation } } }); } @@ -446,7 +447,7 @@ function ConstraintList(props) { const constraint = createElement( 'camunda:Constraint', { name: undefined, config: undefined }, - validation, + ensuredValidation, bpmnFactory ); @@ -454,9 +455,9 @@ function ConstraintList(props) { cmd: 'element.updateModdleProperties', context: { element, - moddleElement: validation, + moddleElement: ensuredValidation, properties: { - constraints: [ ...validation.get('constraints'), constraint ] + constraints: [ ...ensuredValidation.get('constraints'), constraint ] } } }); @@ -539,8 +540,9 @@ function PropertiesList(props) { const commands = []; // (1) ensure properties - if (!properties) { - properties = createElement( + let ensuredProperties = properties; + if (!ensuredProperties) { + ensuredProperties = createElement( 'camunda:Properties', { }, businessObject, @@ -552,7 +554,7 @@ function PropertiesList(props) { context: { element, moddleElement: formField, - properties: { properties } + properties: { properties: ensuredProperties } } }); } @@ -561,7 +563,7 @@ function PropertiesList(props) { const property = createElement( 'camunda:Property', { id: undefined, value: undefined }, - properties, + ensuredProperties, bpmnFactory ); @@ -569,9 +571,9 @@ function PropertiesList(props) { cmd: 'element.updateModdleProperties', context: { element, - moddleElement: properties, + moddleElement: ensuredProperties, properties: { - values: [ ...properties.get('values'), property ] + values: [ ...ensuredProperties.get('values'), property ] } } });