Commit 1eccfcc76aca4997fb2be158ac3dfd7f035d6a86
Committed by
Andrew Shvayka
1 parent
e35e54a7
Fixed incorrect display of alarm table columns(AckTime, Cleared time), with no parameters specified
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -804,7 +804,7 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit, |
804 | 804 | const alarmField = alarmFields[key.name]; |
805 | 805 | if (alarmField) { |
806 | 806 | if (alarmField.time) { |
807 | - return this.datePipe.transform(value, 'yyyy-MM-dd HH:mm:ss'); | |
807 | + return value ? this.datePipe.transform(value, 'yyyy-MM-dd HH:mm:ss') : ''; | |
808 | 808 | } else if (alarmField.value === alarmFields.severity.value) { |
809 | 809 | return this.translate.instant(alarmSeverityTranslations.get(value)); |
810 | 810 | } else if (alarmField.value === alarmFields.status.value) { | ... | ... |