From 8f2aad5c41b0257b8fe8e9d0f3d0809e668f533c Mon Sep 17 00:00:00 2001 From: Lucas da Silva Date: Sat, 4 May 2024 16:08:09 +0200 Subject: [PATCH] Fix in formio.html for grids within grids --- camunda-formio-plugin/src/main/resources/static/formio.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/camunda-formio-plugin/src/main/resources/static/formio.html b/camunda-formio-plugin/src/main/resources/static/formio.html index 1ca4eb41..f061f9ed 100644 --- a/camunda-formio-plugin/src/main/resources/static/formio.html +++ b/camunda-formio-plugin/src/main/resources/static/formio.html @@ -89,7 +89,8 @@ FormioUtils.eachComponent( form.components, function (c) { - createVariable(variableManager, c.component.key, "string"); + let key = c.component !== undefined ? c.component.key : c.key; + createVariable(variableManager, key, "string"); }, true, ); @@ -120,7 +121,8 @@ } FormioUtils.eachComponent(form.components, function (c) { - const value = variableManager.variableValue(c.component.key); + let key = c.component !== undefined ? c.component.key : c.key; + const value = variableManager.variableValue(key); if (value !== undefined && value !== null) submission.data[c.component.key] = value; });