Skip to content

Commit

Permalink
console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrov-site committed May 21, 2024
1 parent 529b79f commit 30b402b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions frontend/src/components/modals/RenameChannel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useSelector, useDispatch } from 'react-redux';
import { useTranslation } from 'react-i18next';
import { toast } from 'react-toastify';
import Button from 'react-bootstrap/Button';
import { useEffect, useRef } from 'react';
import { useRef } from 'react';
import { useGetChannelsQuery, useUpdateChannelMutation } from '../../api/channels';
import { setChannelModal, changeChannel } from '../../store/slices/appSlice';

Expand Down Expand Up @@ -44,11 +44,7 @@ const RenameChannel = () => {
console.error(e);
}
};
useEffect(() => {
if (input.current) {
input.current.focus();
}
});
console.log(input.current); // undefined
return (
<Modal show={showModal === 'rename-channel'} onHide={handleCloseModal}>
<Modal.Header closeButton>
Expand Down

0 comments on commit 30b402b

Please sign in to comment.