Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/src/pages/DataAnnotation/Home/DataAnnotation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
deleteAutoAnnotationTaskByIdUsingDelete,
syncAutoAnnotationTaskToLabelStudioUsingPost,
getAutoAnnotationLabelStudioProjectUsingGet,
loginAnnotationUsingGet,
} from "../annotation.api";
import { mapAnnotationTask } from "../annotation.const";
import CreateAnnotationTask from "../Create/components/CreateAnnotationTaskDialog";
Expand Down Expand Up @@ -134,7 +135,7 @@ export default function DataAnnotation() {
const base = labelStudioBase;

// no debug logging in production

await loginAnnotationUsingGet(labelingProjId)
if (labelingProjId) {
// only open external Label Studio when we have a configured base url
if (base) {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/DataAnnotation/annotation.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export function deleteAutoAnnotationTaskByIdUsingDelete(taskId: string) {
return del(`/api/annotation/auto/${taskId}`);
}

export function getAutoAnnotationTaskStatusUsingGet(taskId: string) {
return get(`/api/annotation/auto/${taskId}/status`);
export function loginAnnotationUsingGet(mappingId: string) {
return get(`/api/annotation/project/${mappingId}/login`);
}

export function downloadAutoAnnotationResultUsingGet(taskId: string) {
Expand Down
Loading