Browse Source

UI: Fix alarm table cell content for non alarm fields

pull/3108/head
Igor Kulikov 6 years ago
parent
commit
c406c7b485
  1. 5
      ui-ngx/src/app/modules/home/components/widget/lib/table-widget.models.ts

5
ui-ngx/src/app/modules/home/components/widget/lib/table-widget.models.ts

@ -182,7 +182,10 @@ export function getEntityValue(entity: any, key: DataKey): any {
} }
export function getAlarmValue(alarm: AlarmDataInfo, key: EntityColumn) { export function getAlarmValue(alarm: AlarmDataInfo, key: EntityColumn) {
const alarmField = alarmFields[key.name]; let alarmField = null;
if (key.type === DataKeyType.alarm) {
alarmField = alarmFields[key.name];
}
if (alarmField) { if (alarmField) {
return getDescendantProp(alarm, alarmField.value); return getDescendantProp(alarm, alarmField.value);
} else { } else {

Loading…
Cancel
Save