Fix merge of alarms
This commit is contained in:
parent
374cf2a14c
commit
020b158e86
@ -128,7 +128,7 @@ public class TbAlarmDataSubCtx extends TbAbstractDataSubCtx<AlarmDataQuery> {
|
||||
}
|
||||
}
|
||||
alarmsMap.clear();
|
||||
alarmsMap.putAll(alarms.getData().stream().collect(Collectors.toMap(AlarmData::getId, Function.identity())));
|
||||
alarmsMap.putAll(alarms.getData().stream().collect(Collectors.toMap(AlarmData::getId, Function.identity(), (a, b) -> a)));
|
||||
return this.alarms;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user