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>({
|
} = useQuery<ArtifactApiResponse>({
|
||||||
queryKey: ["artifact", artifactId],
|
queryKey: ["artifact", artifactId],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const client = await getClient(credentialGetter);
|
const client = await getClient(credentialGetter, "sans-api-v1");
|
||||||
return client
|
return client
|
||||||
.get(`${apiPathPrefix}/artifacts/${artifactId}`)
|
.get(`/artifacts/${artifactId}`)
|
||||||
.then((response) => response.data);
|
.then((response) => response.data);
|
||||||
},
|
},
|
||||||
enabled: Boolean(artifactId),
|
enabled: Boolean(artifactId),
|
||||||
|
|||||||
Reference in New Issue
Block a user