Skip to content

Commit

Permalink
VALIDATION : fix bug when id_nomenclature_validation_status is null
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLechemia committed Nov 8, 2023
1 parent 4ce48fb commit c6bbd85
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,18 @@
<div class="statusContent">
<span
class="validationCircle"
[ngStyle]="{'background': config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status.cd_nomenclature]?.color}"
[ngStyle]="{'background': config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color}"
>
<i
*ngIf="row.last_validation?.validation_auto"
class="material-icons"
>computer</i>
</span>
<div
[ngStyle]="{'background': config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status.cd_nomenclature]?.color}"
[ngStyle]="{'background': config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color}"
class="statusName"
>
<span>{{row.nomenclature_valid_status.mnemonique}}</span>
<span>{{row.nomenclature_valid_status?.mnemonique}}</span>
<span *ngIf="row.last_validation?.validation_auto"> (automatique)</span>
</div>
</div>
Expand Down Expand Up @@ -157,20 +157,21 @@
<div class="statusContent">
<span
class="validationCircle"
[ngStyle]="{'background': config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status.cd_nomenclature]?.color}"
[ngStyle]="{'background': config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color}"
>
<i
*ngIf="row.last_validation?.validation_auto"
class="material-icons"
>computer</i>
</span>
<div
[ngStyle]="{'background': config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status.cd_nomenclature]?.color}"
[ngStyle]="{'background': config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color}"
class="statusName"
>
<span>{{row.nomenclature_valid_status.mnemonique}}</span>
<span>{{row?.nomenclature_valid_status?.mnemonique}}</span>
<span *ngIf="row.last_validation?.validation_auto"> (automatique)</span>
</div>

</div>
</ng-template>
</ngx-datatable-column>
Expand Down

0 comments on commit c6bbd85

Please sign in to comment.