From 141316d353f711ada14002527cce89ce5167481e Mon Sep 17 00:00:00 2001 From: Rohit Rajan Date: Mon, 10 Nov 2025 11:30:01 +0530 Subject: [PATCH] fix: preview for capture text action --- src/components/run/InterpretationLog.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/run/InterpretationLog.tsx b/src/components/run/InterpretationLog.tsx index c269add1..07a2ff34 100644 --- a/src/components/run/InterpretationLog.tsx +++ b/src/components/run/InterpretationLog.tsx @@ -306,6 +306,8 @@ export const InterpretationLog: React.FC = ({ isOpen, se shouldOpenDrawer = true; } lastListDataLength.current = captureListData.length; + } else if (hasScrapeListAction && captureListData.length === 0) { + lastListDataLength.current = 0; } if (hasScrapeSchemaAction && captureTextData.length > 0 && !getText) { @@ -315,6 +317,8 @@ export const InterpretationLog: React.FC = ({ isOpen, se shouldOpenDrawer = true; } lastTextDataLength.current = captureTextData.length; + } else if (hasScrapeSchemaAction && captureTextData.length === 0) { + lastTextDataLength.current = 0; } if (hasScreenshotAction && screenshotData.length > 0) { @@ -324,6 +328,8 @@ export const InterpretationLog: React.FC = ({ isOpen, se shouldOpenDrawer = true; } lastScreenshotDataLength.current = screenshotData.length; + } else if (hasScreenshotAction && screenshotData.length === 0) { + lastScreenshotDataLength.current = 0; } const getLatestCaptureType = () => { @@ -466,7 +472,7 @@ export const InterpretationLog: React.FC = ({ isOpen, se {t('interpretation_log.titles.output_preview')} - {!(hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction) && ( + {!(hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction) && !showPreviewData && availableTabs.length === 0 && (