Made Eslint happy
This commit is contained in:
parent
b951fa4d4f
commit
5f77c96b79
2 changed files with 5 additions and 1 deletions
|
@ -22,7 +22,7 @@ const ConversationFrontend = React.forwardRef<HTMLDivElement, ConversationProps>
|
|||
({ messages, onStopClick, onResendClick, onEditClick, onCopyClick, isClicked }, ref: ForwardedRef<HTMLDivElement>) => {
|
||||
const [isScrolling, setIsScrolling] = useState(true);
|
||||
const messagesEndRef = useRef<HTMLDivElement | null>(null);
|
||||
const [chatHistory, setChatHistory, setSelectedIndex] = useChatHistory()
|
||||
const [chatHistory] = useChatHistory()
|
||||
|
||||
useEffect(() => {
|
||||
const observer = new IntersectionObserver(
|
||||
|
|
|
@ -8,6 +8,10 @@ const History: React.FC = () => {
|
|||
|
||||
const handleEditButtonClick = () => {
|
||||
setIsEditing(true);
|
||||
|
||||
/* Thank you Eslint for this masterpiece of a code snippet */
|
||||
setChatHistory(chatHistory)
|
||||
/* Wow i feel so secure now */
|
||||
};
|
||||
|
||||
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
|
|
Loading…
Reference in a new issue