From 3e3d7d1192a79455d4b1ad7ae534141ebc843cb0 Mon Sep 17 00:00:00 2001 From: Raunak Burrows Date: Wed, 18 Nov 2026 17:08:32 +0000 Subject: [PATCH] fix: open a script's runs from All runs on an older version's page (#12488) On the page of a script version that is not HEAD, the inputs library is keyed by the HEAD hash, and the All runs button linked to /runs/. The runs page filters by path, so it listed no jobs. Link to the script or flow path instead. --- frontend/src/lib/components/SavedInputsV2.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/SavedInputsV2.svelte b/frontend/src/lib/components/SavedInputsV2.svelte index a023f33c45..50924cbd19 100644 --- a/frontend/src/lib/components/SavedInputsV2.svelte +++ b/frontend/src/lib/components/SavedInputsV2.svelte @@ -47,6 +47,8 @@ let historicInputs: HistoricInputs | undefined = $state(undefined) let runnableId = $derived(scriptHash || scriptPath || flowPath || undefined) + // The runs page filters by path, and on an older version of a script runnableId is a hash. + let runsPath = $derived(scriptPath || flowPath || '') let runnableType: RunnableType | undefined = $derived( scriptHash ? 'ScriptHash' : scriptPath ? 'ScriptPath' : flowPath ? 'FlowPath' : undefined @@ -158,7 +160,7 @@