feat: add condition for press actions
This commit is contained in:
@@ -104,7 +104,7 @@ export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettin
|
|||||||
workflow?.forEach(step => {
|
workflow?.forEach(step => {
|
||||||
step.what?.forEach(action => {
|
step.what?.forEach(action => {
|
||||||
if (
|
if (
|
||||||
(action.action === 'type') &&
|
(action.action === 'type' || action.action === 'press') &&
|
||||||
action.args &&
|
action.args &&
|
||||||
action.args[0] &&
|
action.args[0] &&
|
||||||
typeof action.args[0] === 'string'
|
typeof action.args[0] === 'string'
|
||||||
|
|||||||
Reference in New Issue
Block a user