Merge pull request #370 from RohitR311/cred_fix

fix: add condition for press actions
This commit is contained in:
Karishma Shukla
2025-01-22 20:01:35 +05:30
committed by GitHub

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'