From 29ee980d8bc622dcac1f1d34f25a935d60d58f3d Mon Sep 17 00:00:00 2001 From: sagarika-padmanaban Date: Fri, 13 Dec 2024 17:05:54 +0530 Subject: [PATCH] fixes --- src/common/CompareEdits.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/common/CompareEdits.jsx b/src/common/CompareEdits.jsx index 0a6ac710..bab88c21 100644 --- a/src/common/CompareEdits.jsx +++ b/src/common/CompareEdits.jsx @@ -90,9 +90,13 @@ const CompareEdits = ({ data.transcripts.forEach((transcript) => { if (transcript.status === "TRANSCRIPTION_EDIT_COMPLETE") { - editComplete.push( - ...transcript.data.payload.map((item) => item.verbatim_text) - ); + transcript.data.payload.forEach((item) => { + if (item.verbatim_text && item.verbatim_text.trim() !== "") { + editComplete.push(item.verbatim_text); + }else{ + editComplete.push(item.text); + } + }) } else if (transcript.status === "TRANSCRIPTION_SELECT_SOURCE") { selectSource.push( ...transcript.data.payload.map((item) => item.text)