diff --git a/src/elements/FormDataInputsTable/FormDataInputsTable.js b/src/elements/FormDataInputsTable/FormDataInputsTable.js index 39a18be62..5e1a81421 100644 --- a/src/elements/FormDataInputsTable/FormDataInputsTable.js +++ b/src/elements/FormDataInputsTable/FormDataInputsTable.js @@ -52,7 +52,7 @@ const FormDataInputsTable = ({ className, disabled, fieldsPath, formState }) => } const validateDataInputs = value => { - const tableErrors = value.reduce((errorData, dataInput, index) => { + const tableErrors = value?.reduce((errorData, dataInput, index) => { if (dataInput.isRequired && dataInput.data?.fieldInfo?.value === '') { errorData[index] = [{ name: 'required', diff --git a/src/elements/FormParametersTable/FormParametersTable.js b/src/elements/FormParametersTable/FormParametersTable.js index 896a4f076..286cafcc5 100644 --- a/src/elements/FormParametersTable/FormParametersTable.js +++ b/src/elements/FormParametersTable/FormParametersTable.js @@ -76,7 +76,7 @@ const FormParametersTable = ({ withRequiredParametersRef.current = !parametersAreFromFile - const tableErrors = value.reduce((errorData, parameter, index) => { + const tableErrors = value?.reduce((errorData, parameter, index) => { if ( !parametersAreFromFile && parameter.isRequired &&