Skip to content

Commit

Permalink
Merge pull request #744 from AI4Bharat/cluichange9
Browse files Browse the repository at this point in the history
remove audiocontent from VOTR save api payload
  • Loading branch information
aparna-aa authored Jun 27, 2024
2 parents 91a8ad5 + e65b9d1 commit 0652146
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/hooks/useAutoSave.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,21 @@ export const useAutoSave = () => {
// return;
// }

// if(taskDetails?.task_type.includes("TRANSLATION_VOICEOVER")){
// if(subs.length > 0){
// subs.forEach(element => {
// element.text_changed = false;
// });
// }}
let copySubs = [...subs];

if(taskDetails?.task_type.includes("TRANSLATION_VOICEOVER")){
if(copySubs.length > 0){
copySubs.forEach(element => {
element.audio = "";
});
}}

const reqBody = {
task_id: taskId,
offset: currentPage,
limit: limit,
payload: {
payload: subs,
payload: copySubs,
},
};

Expand Down

0 comments on commit 0652146

Please sign in to comment.