From 695030f200b6608fe8758b05c18e854fc204d689 Mon Sep 17 00:00:00 2001 From: Thorrester Date: Fri, 27 Sep 2024 15:11:19 -0400 Subject: [PATCH] check targets --- .../app/static/src/lib/card/monitoring/SPCProfile.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/opsml/app/static/src/lib/card/monitoring/SPCProfile.svelte b/opsml/app/static/src/lib/card/monitoring/SPCProfile.svelte index 3d501642a..9bda055de 100644 --- a/opsml/app/static/src/lib/card/monitoring/SPCProfile.svelte +++ b/opsml/app/static/src/lib/card/monitoring/SPCProfile.svelte @@ -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 || []; @@ -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,