fixing artifacts endpoint removing api from path (#4417)

This commit is contained in:
Celal Zamanoglu
2026-01-08 21:04:48 +03:00
committed by GitHub
parent 33753e0f39
commit 51b50c61f0

View File

@@ -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),