Skip to content

Commit

Permalink
check targets
Browse files Browse the repository at this point in the history
  • Loading branch information
thorrester committed Sep 27, 2024
1 parent 7ce178c commit 695030f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion opsml/app/static/src/lib/card/monitoring/SPCProfile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
let process_rule = alertConfig.alert_rule?.process?.rule;
let zones_to_monitor: string[];
// default to empty array
$: zones_to_monitor = alertConfig.alert_rule?.process?.zones_to_monitor || [];
Expand Down Expand Up @@ -45,6 +45,12 @@
alert_kwargs = JSON.parse(alert_kwargs);
}
// check targets
if (typeof targets === 'string') {
let targetsList = targets as string;
targets = targetsList.split(',');
}
let updatedDriftConfig = {
sample: sample,
Expand Down

0 comments on commit 695030f

Please sign in to comment.