use new run URLs, attempt iii (#3938)

This commit is contained in:
Jonathan Dobson
2025-11-07 07:24:47 -05:00
committed by GitHub
parent f7bd3d71ac
commit f291e95f96
3 changed files with 6 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
import { getClient } from "@/api/AxiosClient";
import { WorkflowRunStatusApiResponse } from "@/api/types";
import { useCredentialGetter } from "@/hooks/useCredentialGetter";
import { useFirstParam } from "@/hooks/useFirstParam";
import {
statusIsNotFinalized,
statusIsRunningOrQueued,
@@ -10,7 +11,8 @@ import { useParams } from "react-router-dom";
import { useGlobalWorkflowsQuery } from "./useGlobalWorkflowsQuery";
function useWorkflowRunQuery() {
const { workflowRunId, workflowPermanentId } = useParams();
const workflowRunId = useFirstParam("workflowRunId", "runId");
const { workflowPermanentId } = useParams();
const credentialGetter = useCredentialGetter();
const { data: globalWorkflows } = useGlobalWorkflowsQuery();