mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-15 23:18:09 +01:00
adds linting, fix linter errors, abort automatic scrolling
This commit is contained in:
parent
16932b37c0
commit
a516b38e27
7 changed files with 4235 additions and 16569 deletions
|
|
@ -1,25 +1,13 @@
|
|||
import React, { useState } from 'react';
|
||||
import React from 'react';
|
||||
import Conversation from './Conversation';
|
||||
|
||||
export default function Conversations({ conversations, conversationId }) {
|
||||
// const currentRef = useRef(null);
|
||||
|
||||
// const scrollToTop = () => {
|
||||
// currentRef.current?.scrollIntoView({ behavior: 'smooth' });
|
||||
// };
|
||||
|
||||
// // this useEffect triggers the following warning in the Messages component (but not here):
|
||||
// // Warning: Internal React error: Expected static flag was missing.
|
||||
// useEffect(() => {
|
||||
// scrollToTop();
|
||||
// }, [conversationId]);
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* <div ref={currentRef} /> */}
|
||||
{conversations &&
|
||||
conversations.length > 0 &&
|
||||
conversations.map((convo, i) => {
|
||||
conversations.map((convo) => {
|
||||
const bingData = convo.conversationSignature
|
||||
? {
|
||||
conversationSignature: convo.conversationSignature,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue