Skip to content

Automate browser based workflows with AI

fixing artifacts endpoint removing api from path (#4417)

Celal Zamanoglu51b50c61f03c
diff --git a/skyvern-frontend/src/routes/tasks/detail/ActionScreenshot.tsx b/skyvern-frontend/src/routes/tasks/detail/ActionScreenshot.tsx
index 079ed2c3f..d50bd94bb 100644
--- a/skyvern-frontend/src/routes/tasks/detail/ActionScreenshot.tsx
+++ b/skyvern-frontend/src/routes/tasks/detail/ActionScreenshot.tsx
@@ -25,9 +25,9 @@ function ActionScreenshot({ artifactId, stepId, index, taskStatus }: Props) {
} = useQuery<ArtifactApiResponse>({
queryKey: ["artifact", artifactId],
queryFn: async () => {
- const client = await getClient(credentialGetter);
+ const client = await getClient(credentialGetter, "sans-api-v1");
return client
- .get(`${apiPathPrefix}/artifacts/${artifactId}`)
+ .get(`/artifacts/${artifactId}`)
.then((response) => response.data);
},
enabled: Boolean(artifactId),