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