From 28a1ab80b8d5da4ce2f93d24f8dd3b2d05b7e8ca Mon Sep 17 00:00:00 2001 From: Rohit Date: Sat, 1 Feb 2025 11:37:00 +0530 Subject: [PATCH] feat: rm set robot global state --- src/components/robot/RobotDuplicate.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/robot/RobotDuplicate.tsx b/src/components/robot/RobotDuplicate.tsx index 2591f95f..bee1ef5b 100644 --- a/src/components/robot/RobotDuplicate.tsx +++ b/src/components/robot/RobotDuplicate.tsx @@ -56,7 +56,8 @@ interface RobotSettingsProps { export const RobotDuplicationModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => { const { t } = useTranslation(); const [targetUrl, setTargetUrl] = useState(''); - const { recordingId, notify, robot, setRobot, setRerenderRobots } = useGlobalInfoStore(); + const [robot, setRobot] = useState(null); + const { recordingId, notify, setRerenderRobots } = useGlobalInfoStore(); useEffect(() => { if (isOpen) {