From fa36e5282fa584dc5f640d29525d0c88cf70edf7 Mon Sep 17 00:00:00 2001 From: Rohit Date: Sat, 1 Feb 2025 11:32:14 +0530 Subject: [PATCH] feat: rm set robot global state --- src/components/robot/RobotEdit.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/robot/RobotEdit.tsx b/src/components/robot/RobotEdit.tsx index 89b6e701..25edaa3f 100644 --- a/src/components/robot/RobotEdit.tsx +++ b/src/components/robot/RobotEdit.tsx @@ -77,7 +77,8 @@ interface GroupedCredentials { export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => { const { t } = useTranslation(); const [credentials, setCredentials] = useState({}); - const { recordingId, notify, robot, setRobot, setRerenderRobots } = useGlobalInfoStore(); + const { recordingId, notify, setRerenderRobots } = useGlobalInfoStore(); + const [robot, setRobot] = useState(null); const [credentialGroups, setCredentialGroups] = useState({ passwords: [], emails: [],