feat: add condition for press actions

This commit is contained in:
Rohit
2025-01-22 19:52:28 +05:30
parent 79558b33b8
commit bcfe314f04

View File

@@ -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'