This commit is contained in:
Henry 2023-05-22 17:52:18 +01:00
parent 7f3d850bf6
commit 34bfd4c793
1 changed files with 0 additions and 4 deletions

View File

@ -26,7 +26,6 @@ import useApi from 'hooks/useApi'
// Const // Const
import { baseURL, maxScroll } from 'store/constant' import { baseURL, maxScroll } from 'store/constant'
import { throttle } from 'utils/genericHelper'
export const ChatMessage = ({ open, chatflowid, isDialog }) => { export const ChatMessage = ({ open, chatflowid, isDialog }) => {
const theme = useTheme() const theme = useTheme()
@ -57,8 +56,6 @@ export const ChatMessage = ({ open, chatflowid, isDialog }) => {
const onChange = useCallback((e) => setUserInput(e.target.value), [setUserInput]) const onChange = useCallback((e) => setUserInput(e.target.value), [setUserInput])
const scrollThrottle = throttle(scrollToBottom, 250)
const addChatMessage = async (message, type) => { const addChatMessage = async (message, type) => {
try { try {
const newChatMessageBody = { const newChatMessageBody = {
@ -172,7 +169,6 @@ export const ChatMessage = ({ open, chatflowid, isDialog }) => {
// Auto scroll chat to bottom // Auto scroll chat to bottom
useEffect(() => { useEffect(() => {
scrollToBottom() scrollToBottom()
console.log('throeel')
}, [messages]) }, [messages])
useEffect(() => { useEffect(() => {