Skip to content

Commit

Permalink
Fix [Batch run] is broken for parameters-less functions 1.5.x (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
mavdryk authored Oct 30, 2023
1 parent 6d0e43a commit 8e21589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/elements/FormDataInputsTable/FormDataInputsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/elements/FormParametersTable/FormParametersTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 8e21589

Please sign in to comment.