Add api path prefix into screenshots and title (#1557)

This commit is contained in:
Shuchang Zheng
2025-01-15 02:20:00 -08:00
committed by GitHub
parent 518605b91a
commit d905a8d4b9
5 changed files with 19 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ import { Skeleton } from "@/components/ui/skeleton";
import { useCredentialGetter } from "@/hooks/useCredentialGetter";
import { useQuery } from "@tanstack/react-query";
import { WorkflowApiResponse } from "./types/workflowTypes";
import { apiPathPrefix } from "@/util/env";
type Props = {
workflowPermanentId: string;
@@ -20,7 +21,7 @@ function WorkflowTitle({ workflowPermanentId }: Props) {
queryFn: async () => {
const client = await getClient(credentialGetter);
return client
.get(`/workflows/${workflowPermanentId}`)
.get(`${apiPathPrefix}/workflows/${workflowPermanentId}`)
.then((response) => response.data);
},
});