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); }} >