feat: rm set robot global state
This commit is contained in:
@@ -56,7 +56,8 @@ interface RobotSettingsProps {
|
|||||||
export const RobotDuplicationModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => {
|
export const RobotDuplicationModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const [targetUrl, setTargetUrl] = useState<string | undefined>('');
|
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(() => {
|
useEffect(() => {
|
||||||
if (isOpen) {
|
if (isOpen) {
|
||||||
|
|||||||
Reference in New Issue
Block a user