Showing
1 changed file
with
3 additions
and
1 deletions
... | ... | @@ -520,7 +520,9 @@ class ReactState { |
520 | 520 | ytDeviceService.freshAlarmStatus(entityId, 1); |
521 | 521 | currentAlarms.put(deviceId, currentAlarm); |
522 | 522 | alarmMsg(ctx, msg, currentAlarm, "Alarm Cleared"); |
523 | - | |
523 | + if(action.getAlarmProfileId().isEmpty()){ | |
524 | + return; | |
525 | + } | |
524 | 526 | AlarmInfoDTO formData = new AlarmInfoDTO(); |
525 | 527 | formData.setDeviceName(msg.getMetaData().getData().get("deviceName")); |
526 | 528 | formData.setDetails(JacksonUtil.toString(detail)); | ... | ... |