Skip to content

Commit

Permalink
Merge pull request #1029 from AI4Bharat/su_annotation_fix
Browse files Browse the repository at this point in the history
Superchecker annotation fix
  • Loading branch information
aparna-aa authored May 9, 2024
2 parents bb631da + ad818eb commit c49516e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,6 @@ const SuperCheckerAudioTranscriptionLandingPage = () => {
["draft", "skipped", "rejected"].includes(value) ||
(["validated", "validated_with_changes"].includes(value) && L1Check && L2Check)
) {
// if(value === "rejected") PatchAPIdata["result"] = [];
const TaskObj = new PatchAnnotationAPI(id, PatchAPIdata);
const res = await fetch(TaskObj.apiEndPoint(), {
method: "PATCH",
Expand Down
3 changes: 1 addition & 2 deletions src/ui/pages/container/Label-Studio/SuperCheckerLSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,7 @@ useEffect(() => {
if (taskData.annotation_status !== "freezed") {
setAutoSave(false);
showLoader();
let temp = review_status.current === "rejected"
? [] : annotation.serializeAnnotation();
let temp = annotation.serializeAnnotation();

for (let i = 0; i < temp.length; i++) {
if(temp[i].type === "relation"){
Expand Down

0 comments on commit c49516e

Please sign in to comment.