From 3fc961bf3b534be8a608acf07d9382d1586e99b9 Mon Sep 17 00:00:00 2001 From: cka-y <60586858+cka-y@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:44:54 -0400 Subject: [PATCH] hotfix: jobId incorrectly set in the UI (#1723) --- .github/workflows/stg_web_client_merge.yml | 1 + web/client/src/routes/+page.svelte | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stg_web_client_merge.yml b/.github/workflows/stg_web_client_merge.yml index 03a97b67b9..8535a213fe 100644 --- a/.github/workflows/stg_web_client_merge.yml +++ b/.github/workflows/stg_web_client_merge.yml @@ -4,6 +4,7 @@ on: push: branches: - master + workflow_dispatch: env: NODE_VERSION: "20" diff --git a/web/client/src/routes/+page.svelte b/web/client/src/routes/+page.svelte index 9377ed405d..73300f95f3 100644 --- a/web/client/src/routes/+page.svelte +++ b/web/client/src/routes/+page.svelte @@ -352,10 +352,11 @@ } catch (error) { addError( typeof error === 'string'? error : generalValidationErrorMessage); statusModal.close(); - return; + return; } jobId = job.jobId; + await tick(); // push a url with the ID so it can be referred to later (see handleUrlParams) history.pushState(null, '', `?report=${jobId}`);