From 9cb7e1165bda080cf3ff5a38cc0279c90aded552 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Tue, 8 Oct 2024 18:29:34 +0530 Subject: [PATCH] feat: has screenshot action --- src/components/organisms/RightSidePanel.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index 64b0e2c2..b72e39bc 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -84,6 +84,10 @@ export const RightSidePanel: React.FC = ({ onFinishCapture pair.what.some(action => action.action === "scrapeList") ); + const hasScreenshotAction = workflow.workflow.some(pair => + pair.what.some(action => action.action === "screenshot") + ); + const handleTextLabelChange = (id: number, label: string, listId?: number, fieldKey?: string) => { if (listId !== undefined && fieldKey !== undefined) { // Prevent editing if the field is confirmed