From bcfe314f044befc886227c4893d16ff4613810bf Mon Sep 17 00:00:00 2001 From: Rohit Date: Wed, 22 Jan 2025 19:52:28 +0530 Subject: [PATCH] feat: add condition for press actions --- src/components/robot/RobotEdit.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/robot/RobotEdit.tsx b/src/components/robot/RobotEdit.tsx index 154566a3..c9f38fa9 100644 --- a/src/components/robot/RobotEdit.tsx +++ b/src/components/robot/RobotEdit.tsx @@ -104,7 +104,7 @@ export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettin workflow?.forEach(step => { step.what?.forEach(action => { if ( - (action.action === 'type') && + (action.action === 'type' || action.action === 'press') && action.args && action.args[0] && typeof action.args[0] === 'string'