fixing artifacts endpoint removing api from path (#4417)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user