From 150b77fe5a200baf8b5bb300b06f7e7f7df8f4df Mon Sep 17 00:00:00 2001 From: amhsirak Date: Tue, 18 Mar 2025 23:45:51 +0530 Subject: [PATCH] feat: get last pair & target url --- src/components/robot/RobotEdit.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/robot/RobotEdit.tsx b/src/components/robot/RobotEdit.tsx index 264c522c..8ac465d5 100644 --- a/src/components/robot/RobotEdit.tsx +++ b/src/components/robot/RobotEdit.tsx @@ -435,6 +435,9 @@ export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettin } }; + const lastPair = robot?.recording.workflow[robot?.recording.workflow.length - 1]; + const targetUrl = lastPair?.what.find(action => action.action === "goto")?.args?.[0]; + return (