skip to Main Content

Why is YUP conditional validation causing branch is not a function at Condition.fn error – Reactjs

I have a MUIRadioGroup (options = Low, Medium and High) and a multi-select MUIAutocomplete component on my form. <MUIRadioGroup name="requestDetail.riskAssesmentDetail.riskClassification" label="Risk Classification" variant="outlined" size="small" defaultValue /> <MUIAutocomplete name="requestDetail.riskAssesmentDetail.safetyDetail.investigationType" label="Type of Investigation" variant="outlined" size="small" multiple disableCloseOnSelect options={API_Safety_InvestigationType} /> My Schema is...…

VIEW QUESTION
Back To Top
Search