From 98bcc82f0130abe635b0ef894c42ac8b06e1f84c Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Wed, 19 Nov 2025 16:49:40 +0100 Subject: [PATCH 1/2] temp inspect --- frontend/src/lib/components/FlowPreviewResult.svelte | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/lib/components/FlowPreviewResult.svelte b/frontend/src/lib/components/FlowPreviewResult.svelte index 57cdbb8058f4c..471ff10f30ea3 100644 --- a/frontend/src/lib/components/FlowPreviewResult.svelte +++ b/frontend/src/lib/components/FlowPreviewResult.svelte @@ -32,6 +32,15 @@ extra, result_streams }: Props = $props() + + // Sometimes the approval form is duplicated but I can't reproduce the issue + // This is a temporary debug log to try to catch it when it happens + + // (See the #each below) + $inspect( + 'suspendStatusVal', + Object.entries(suspendStatus.val || {}).map(([k, v]) => [k, v.job.id]) + ) From 171d055cde8b1087b9c04025099e8a16b92a80ef Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Wed, 19 Nov 2025 17:02:21 +0100 Subject: [PATCH 2/2] $inspect not work in prod --- frontend/src/lib/components/FlowPreviewResult.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/components/FlowPreviewResult.svelte b/frontend/src/lib/components/FlowPreviewResult.svelte index 471ff10f30ea3..4796198e94b5b 100644 --- a/frontend/src/lib/components/FlowPreviewResult.svelte +++ b/frontend/src/lib/components/FlowPreviewResult.svelte @@ -35,11 +35,12 @@ // Sometimes the approval form is duplicated but I can't reproduce the issue // This is a temporary debug log to try to catch it when it happens - // (See the #each below) - $inspect( - 'suspendStatusVal', - Object.entries(suspendStatus.val || {}).map(([k, v]) => [k, v.job.id]) + $effect(() => + console.log( + 'suspendStatusVal', + Object.entries(suspendStatus.val || {}).map(([k, v]) => [k, v.job.id]) + ) )