- merged with develop;

- removed unused variables;
This commit is contained in:
Vitalii Kiiko
2024-11-11 14:33:30 +01:00
parent cff391ae9c
commit fd4764d119
14 changed files with 40 additions and 95 deletions

View File

@@ -189,7 +189,7 @@ const DomandaEditPreInstructor = () => {
setCriterionDataTitle(criterion.label);
const content = <div className="criterionRelatedData">
<h3>{__('I campi correlati')}</h3>
{criterion.criteriaMappedFields.map(o => criteriaDataItem(o))}
{criterion.criteriaMappedFields ? criterion.criteriaMappedFields.map(o => criteriaDataItem(o)) : null}
</div>;
setCriterionDataContent(content);
setIsVisibleCriterionData(id);
@@ -438,7 +438,7 @@ const DomandaEditPreInstructor = () => {
}}>
<span>{o.label}</span>
<div className="appPageSection__iconActions">
{o.fileDetail.length === 1
{o.fileDetail && o.fileDetail.length === 1
? <Button icon="pi pi-eye" rounded
onClick={() => window.open(o.fileDetail[0].filePath, '_blank').focus()}
outlined severity="info"
@@ -459,7 +459,7 @@ const DomandaEditPreInstructor = () => {
aria-label={__('Giu', 'gepafin')}/>
</div>
</div>
{o.fileDetail.length > 1
{o.fileDetail && o.fileDetail.length > 1
? <ul style={{
width: '100%',
paddingLeft: '15px',