feat: has screenshot action

This commit is contained in:
karishmas6
2024-10-08 18:29:34 +05:30
parent 312ab45c9f
commit 9cb7e1165b

View File

@@ -84,6 +84,10 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ 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