questionnaire defect 41

This commit is contained in:
2025-01-13 14:31:30 +00:00
parent 85f88eb074
commit 8509450ac0
@@ -785,9 +785,10 @@ let S78_Questionnaire = (props) => {
)} )}
component={RenderLPACondtionalRadioList} component={RenderLPACondtionalRadioList}
validate={[required]} validate={[required]}
legend={t( legend={
"myrepresentations:s78-section-question-26" "26. " +
)} t("myrepresentations:s78-section-question-26")
}
hint={t("myrepresentations:s78-footnote-one")} hint={t("myrepresentations:s78-footnote-one")}
conditionalLabel={t( conditionalLabel={t(
"myrepresentations:s78-section-question-26-hint" "myrepresentations:s78-section-question-26-hint"
@@ -812,9 +813,10 @@ let S78_Questionnaire = (props) => {
)} )}
component={RenderLPACondtionalRadioList} component={RenderLPACondtionalRadioList}
validate={[required]} validate={[required]}
legend={t( legend={
"myrepresentations:s78-section-question-27" "27. " +
)} t("myrepresentations:s78-section-question-27")
}
hint={t("myrepresentations:s78-footnote-two")} hint={t("myrepresentations:s78-footnote-two")}
conditionalLabel={t( conditionalLabel={t(
"myrepresentations:s78-section-question-27-hint" "myrepresentations:s78-section-question-27-hint"
@@ -839,9 +841,10 @@ let S78_Questionnaire = (props) => {
)} )}
component={RenderLPACondtionalRadioList} component={RenderLPACondtionalRadioList}
validate={[required]} validate={[required]}
legend={t( legend={
"myrepresentations:s78-section-question-28" "28. " +
)} t("myrepresentations:s78-section-question-28")
}
conditionalLabel={t( conditionalLabel={t(
"myrepresentations:s78-section-question-28-hint" "myrepresentations:s78-section-question-28-hint"
)} )}
@@ -865,9 +868,10 @@ let S78_Questionnaire = (props) => {
)} )}
component={RenderLPACondtionalRadioList} component={RenderLPACondtionalRadioList}
validate={[required]} validate={[required]}
legend={t( legend={
"myrepresentations:s78-section-question-29" "29. " +
)} t("myrepresentations:s78-section-question-29")
}
conditionalLabel={t( conditionalLabel={t(
"myrepresentations:s78-section-question-29-hint" "myrepresentations:s78-section-question-29-hint"
)} )}
@@ -891,9 +895,10 @@ let S78_Questionnaire = (props) => {
)} )}
component={RenderLPACondtionalRadioList} component={RenderLPACondtionalRadioList}
validate={[required]} validate={[required]}
legend={t( legend={
"myrepresentations:s78-section-question-30" "30. " +
)} t("myrepresentations:s78-section-question-30")
}
conditionalLabel={t( conditionalLabel={t(
"myrepresentations:s78-section-question-30-hint" "myrepresentations:s78-section-question-30-hint"
)} )}
@@ -917,9 +922,10 @@ let S78_Questionnaire = (props) => {
)} )}
component={RenderLPACondtionalRadioList} component={RenderLPACondtionalRadioList}
validate={[required]} validate={[required]}
legend={t( legend={
"myrepresentations:s78-section-question-31" "31. " +
)} t("myrepresentations:s78-section-question-31")
}
conditionalLabel={t( conditionalLabel={t(
"myrepresentations:s78-section-question-31-hint" "myrepresentations:s78-section-question-31-hint"
)} )}
@@ -943,9 +949,10 @@ let S78_Questionnaire = (props) => {
)} )}
component={RenderLPACondtionalRadioList} component={RenderLPACondtionalRadioList}
validate={[required]} validate={[required]}
legend={t( legend={
"myrepresentations:s78-section-question-32" "32. " +
)} t("myrepresentations:s78-section-question-32")
}
conditionalLabel={t( conditionalLabel={t(
"myrepresentations:s78-section-question-32-hint" "myrepresentations:s78-section-question-32-hint"
)} )}
@@ -969,9 +976,10 @@ let S78_Questionnaire = (props) => {
)} )}
component={RenderLPACondtionalRadioList} component={RenderLPACondtionalRadioList}
validate={[required]} validate={[required]}
legend={t( legend={
"myrepresentations:s78-section-question-33" "33. " +
)} t("myrepresentations:s78-section-question-33")
}
conditionalLabel={t( conditionalLabel={t(
"myrepresentations:s78-section-question-33-hint" "myrepresentations:s78-section-question-33-hint"
)} )}
@@ -996,18 +1004,19 @@ let S78_Questionnaire = (props) => {
ticketnumber={props.props.props.caseReference} ticketnumber={props.props.props.caseReference}
hint={"sdsd"} hint={"sdsd"}
fileList={ fileList={
props.currentView.caseReference.hasOwnProperty( props.currentView.fileList
"repDetails" // props.currentView.caseReference.hasOwnProperty(
) // "repDetails"
? props.currentView.caseReference.repDetails.hasOwnProperty( // )
"filesList" // ? props.currentView.caseReference.repDetails.hasOwnProperty(
) && // "filesList"
props.currentView.caseReference.repDetails // ) &&
.filesList.length > 0 // props.currentView.caseReference.repDetails
? props.currentView.caseReference // .filesList.length > 0
.repDetails.filesList // ? props.currentView.caseReference
: [] // .repDetails.filesList
: [] // : []
// : []
} }
setFilesForRepresentations={ setFilesForRepresentations={
setFilesForRepresentations setFilesForRepresentations