From f17486db462bf4a3f194da43e961ace17449bcd9 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Tue, 3 Dec 2024 14:12:00 +0100 Subject: [PATCH] :art: Apply fallback for missing form values --- src/openforms/js/components/admin/forms/VariableMapping.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openforms/js/components/admin/forms/VariableMapping.js b/src/openforms/js/components/admin/forms/VariableMapping.js index bab5846fe1..61bb4e8760 100644 --- a/src/openforms/js/components/admin/forms/VariableMapping.js +++ b/src/openforms/js/components/admin/forms/VariableMapping.js @@ -254,8 +254,8 @@ const VariableMapping = ({ onClick={() => { // TODO update const initial = {[variableName]: '', [propertyName]: ''}; - const mapping = get(values, name); - arrayHelpers.insert(mapping ? mapping.length : 0, initial); + const mapping = get(values, name) || []; + arrayHelpers.insert(mapping.length, initial); }} >