Merged PR 2280: fix in place for app error

fix in place for app error

Related work items: #22834
This commit is contained in:
Robert Bond
2026-04-28 15:48:32 +00:00
parent a25ab433a6
commit 421adafca3
+4 -4
View File
@@ -375,8 +375,8 @@ let BuildSection = (props) => {
doc, doc,
whichField whichField
); );
// console.log(errorFieldLabel[0]?.value);
return errorFieldLabel[0].value; return errorFieldLabel[0]?.value;
}; };
let errorItems = []; let errorItems = [];
@@ -405,10 +405,10 @@ let BuildSection = (props) => {
<div className="govuk-grid-column-two-thirds wgForm "> <div className="govuk-grid-column-two-thirds wgForm ">
<SectionHeader title={FieldsTranslations(titles[0].value)} /> <SectionHeader title={FieldsTranslations(titles[0].value)} />
<form onSubmit={handleSubmit(onHandleSubmit)}> <form onSubmit={handleSubmit(onHandleSubmit)}>
<ErrorSummary {/* <ErrorSummary
hasErrors={hasErrors == true} hasErrors={hasErrors == true}
errorItems={getErrorItems()} errorItems={getErrorItems()}
/> /> */}
<BuildRow <BuildRow
rowXML={rowXML} rowXML={rowXML}
whichSection={props.whichSection} whichSection={props.whichSection}