- fixed bug in evaluation page - related to null in fieldValue that was not accounted for;
This commit is contained in:
@@ -266,9 +266,11 @@ const DomandaEditPreInstructor = () => {
|
|||||||
switch (item.fieldName) {
|
switch (item.fieldName) {
|
||||||
case 'fileupload' :
|
case 'fileupload' :
|
||||||
content = <ul>
|
content = <ul>
|
||||||
{item.fieldValue.map(o => <li key={o.id}>
|
{item.fieldValue
|
||||||
{o.filePath ? <a href={o.filePath}>{o.name}</a> : null}
|
? item.fieldValue.map(o => <li key={o.id}>
|
||||||
</li>)}
|
{o.filePath ? <a href={o.filePath}>{o.name}</a> : null}
|
||||||
|
</li>)
|
||||||
|
: null}
|
||||||
</ul>;
|
</ul>;
|
||||||
break;
|
break;
|
||||||
case 'table' :
|
case 'table' :
|
||||||
@@ -280,9 +282,11 @@ const DomandaEditPreInstructor = () => {
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{item.fieldValue.map((o, i) => <tr key={i}>
|
{item.fieldValue
|
||||||
{Object.values(o).map(v => <td key={v}>{v}</td>)}
|
? item.fieldValue.map((o, i) => <tr key={i}>
|
||||||
</tr>)}
|
{Object.values(o).map(v => <td key={v}>{v}</td>)}
|
||||||
|
</tr>)
|
||||||
|
: null}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>;
|
</table>;
|
||||||
break;
|
break;
|
||||||
@@ -424,7 +428,7 @@ const DomandaEditPreInstructor = () => {
|
|||||||
const doCreateAppointmentRequest = () => {
|
const doCreateAppointmentRequest = () => {
|
||||||
if (
|
if (
|
||||||
!isEmpty(appointmentData.title) && !isEmpty(appointmentData.text) && !isEmpty(appointmentData.amount)
|
!isEmpty(appointmentData.title) && !isEmpty(appointmentData.text) && !isEmpty(appointmentData.amount)
|
||||||
&& !isEmpty(appointmentData.duration) && appointmentData.duration !== 0 && appointmentData.amount !== 0
|
&& !isEmpty(appointmentData.duration) && appointmentData.duration !== 0 && appointmentData.amount !== 0
|
||||||
) {
|
) {
|
||||||
console.log(appointmentData);
|
console.log(appointmentData);
|
||||||
}
|
}
|
||||||
@@ -528,7 +532,7 @@ const DomandaEditPreInstructor = () => {
|
|||||||
<div className="appPageSection">
|
<div className="appPageSection">
|
||||||
<h2>{__('Scarica documenti della domanda', 'gepafin')}</h2>
|
<h2>{__('Scarica documenti della domanda', 'gepafin')}</h2>
|
||||||
<div className="appPageSection__row autoFlow">
|
<div className="appPageSection__row autoFlow">
|
||||||
<DownloadApplicationArchive applicationId={id}/>
|
<DownloadApplicationArchive applicationId={id}/>
|
||||||
<DownloadSignedApplication applicationId={id}/>
|
<DownloadSignedApplication applicationId={id}/>
|
||||||
<DownloadCompanyDelegation applicationId={id}/>
|
<DownloadCompanyDelegation applicationId={id}/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user