feat: rm set robot global state

This commit is contained in:
Rohit
2025-02-01 11:37:00 +05:30
parent 8176e68c14
commit 28a1ab80b8

View File

@@ -56,7 +56,8 @@ interface RobotSettingsProps {
export const RobotDuplicationModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => {
const { t } = useTranslation();
const [targetUrl, setTargetUrl] = useState<string | undefined>('');
const { recordingId, notify, robot, setRobot, setRerenderRobots } = useGlobalInfoStore();
const [robot, setRobot] = useState<RobotSettings | null>(null);
const { recordingId, notify, setRerenderRobots } = useGlobalInfoStore();
useEffect(() => {
if (isOpen) {