diff --git a/frontend/src/components/ImageCanvas/index.tsx b/frontend/src/components/ImageCanvas/index.tsx index 6915766..79988bb 100644 --- a/frontend/src/components/ImageCanvas/index.tsx +++ b/frontend/src/components/ImageCanvas/index.tsx @@ -359,30 +359,7 @@ export default function ImageCanvas() { - - {comments.map((comment) => ( - { - updateCommentMutation.mutate({ - commentId: comment.id, - commentData: { - content: updatedComment.content, - positionX: updatedComment.positionX, - positionY: updatedComment.positionY, - }, - }); - }} - deleteComment={(commentId) => { - deleteCommentMutation.mutate(commentId); - }} - toggleComment={(commentId) => { - useCommentStore.getState().toggleComment(commentId); - }} - /> - ))} - + {project?.type !== 'classification' && ( {labels.map((label) => @@ -455,6 +432,30 @@ export default function ImageCanvas() { )} + + {comments.map((comment) => ( + { + updateCommentMutation.mutate({ + commentId: comment.id, + commentData: { + content: updatedComment.content, + positionX: updatedComment.positionX, + positionY: updatedComment.positionY, + }, + }); + }} + deleteComment={(commentId) => { + deleteCommentMutation.mutate(commentId); + }} + toggleComment={(commentId) => { + useCommentStore.getState().toggleComment(commentId); + }} + /> + ))} +