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: [],