diff --git a/app/views/EntryEdit/LeftPane/index.tsx b/app/views/EntryEdit/LeftPane/index.tsx index dfd5ffe396..d58a779d65 100644 --- a/app/views/EntryEdit/LeftPane/index.tsx +++ b/app/views/EntryEdit/LeftPane/index.tsx @@ -67,8 +67,10 @@ const LEAD_PREVIEW = gql` lead(id: $leadId) { id extractionStatus + confidentiality leadPreview { textExtract + textExtractionId } } } @@ -375,6 +377,9 @@ function LeftPane(props: Props) { setShowCanvasDrawModalTrue(); }, [fullScreenMode, setShowCanvasDrawModalTrue, setShowScreenshotFalse]); + const isAutoExtractionCompatible = isDefined(leadPreview?.textExtractionId) + && leadPreviewData?.project?.lead?.confidentiality !== 'CONFIDENTIAL'; + const originalTabContent = ( NLP Extract and Classify - {(leadPreview?.textExtract?.length ?? 0) > 0 ? (