Skip to content

Commit fa045b9

Browse files
committed
fix(frontend): preview error
1 parent bdd27ad commit fa045b9

File tree

1 file changed

+1
-1
lines changed
  • apps/frontend/src/pages/tasks.[id].samples.[id]/components/annotationRightCorner

1 file changed

+1
-1
lines changed

apps/frontend/src/pages/tasks.[id].samples.[id]/components/annotationRightCorner/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ const AnnotationRightCorner = ({ noSave, fetchNext, totalSize }: AnnotationRight
273273
annotated_count: getAnnotationCount(body.data!.result),
274274
state: SampleState.DONE,
275275
});
276-
}, [currentSample, isMeTheCurrentUser, noSave, task?.config.tools, task?.media_type, taskId]);
276+
}, [currentSample, isMeTheCurrentUser, noSave, task?.config?.tools, task?.media_type, taskId]);
277277

278278
const handleComplete = useCallback(async () => {
279279
await saveCurrentSample();

0 commit comments

Comments
 (0)