Skip to content

Commit e5a40ab

Browse files
FIX : Redact modal fix
1 parent 9311ee5 commit e5a40ab

File tree

1 file changed

+2
-37
lines changed

1 file changed

+2
-37
lines changed

frontend/src/components/library/RedactModal.tsx

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -848,44 +848,9 @@ export function RedactModal({ isOpen, onClose, file }: RedactModalProps) {
848848
)}
849849
</>
850850
) : isImage && imageRedactionResult ? (
851-
<>
852-
<span className="text-muted-foreground">
853-
Censored{" "}
854-
<span className="font-semibold text-foreground">
855-
{imageRedactionResult.segments_censored}
856-
</span>{" "}
857-
{imageRedactionResult.segments_censored === 1
858-
? "segment"
859-
: "segments"}
860-
</span>
861-
<span className="text-muted-foreground ml-2">
862-
({imageRedactionResult.segments_found} found)
863-
</span>
864-
{imageRedactionResult.categories_selected.length >
865-
0 && (
866-
<span className="text-muted-foreground ml-2">
867-
{" "}
868-
{imageRedactionResult.categories_selected.join(
869-
", ",
870-
)}
871-
</span>
872-
)}
873-
</>
851+
null
874852
) : isVideo && videoRedactionResult ? (
875-
<>
876-
<span className="text-muted-foreground">
877-
Censored{" "}
878-
<span className="font-semibold text-foreground">
879-
{videoRedactionResult.segments_censored}
880-
</span>{" "}
881-
{videoRedactionResult.segments_censored === 1
882-
? "segment"
883-
: "segments"}
884-
</span>
885-
<span className="text-muted-foreground ml-2">
886-
({videoRedactionResult.segments_found} found)
887-
</span>
888-
</>
853+
null
889854
) : isAudio && audioRedactionResult ? (
890855
<>
891856
<span className="text-muted-foreground">

0 commit comments

Comments
 (0)