Skip to content

Commit 5eeb983

Browse files
Patch missing detector_id with data already on UI (#328)
* [FEATURE] Detector must have at least one alert set #288 Signed-off-by: Jovan Cvetkovic <[email protected]> * [FEATURE] Patch bad detector data for alerts #326 Signed-off-by: Jovan Cvetkovic <[email protected]> Signed-off-by: Jovan Cvetkovic <[email protected]>
1 parent 7507594 commit 5eeb983

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

public/pages/Alerts/containers/Alerts/Alerts.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ class Alerts extends Component<AlertsProps, AlertsState> {
304304
if (alertsRes.ok) {
305305
const detectorAlerts = alertsRes.response.alerts.map((alert) => {
306306
const detector = detectors[id];
307+
if (!alert.detector_id) alert.detector_id = id;
307308
return { ...alert, detectorName: detector.name };
308309
});
309310
alerts = alerts.concat(detectorAlerts);

0 commit comments

Comments
 (0)