UI: Fix alarm table cell content for non alarm fields
This commit is contained in:
parent
a7e1e63b9e
commit
c406c7b485
@ -182,7 +182,10 @@ export function getEntityValue(entity: any, key: DataKey): any {
|
||||
}
|
||||
|
||||
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) {
|
||||
return getDescendantProp(alarm, alarmField.value);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user