lint-fix
This commit is contained in:
parent
7f3d850bf6
commit
34bfd4c793
|
|
@ -26,7 +26,6 @@ import useApi from 'hooks/useApi'
|
|||
|
||||
// Const
|
||||
import { baseURL, maxScroll } from 'store/constant'
|
||||
import { throttle } from 'utils/genericHelper'
|
||||
|
||||
export const ChatMessage = ({ open, chatflowid, isDialog }) => {
|
||||
const theme = useTheme()
|
||||
|
|
@ -57,8 +56,6 @@ export const ChatMessage = ({ open, chatflowid, isDialog }) => {
|
|||
|
||||
const onChange = useCallback((e) => setUserInput(e.target.value), [setUserInput])
|
||||
|
||||
const scrollThrottle = throttle(scrollToBottom, 250)
|
||||
|
||||
const addChatMessage = async (message, type) => {
|
||||
try {
|
||||
const newChatMessageBody = {
|
||||
|
|
@ -172,7 +169,6 @@ export const ChatMessage = ({ open, chatflowid, isDialog }) => {
|
|||
// Auto scroll chat to bottom
|
||||
useEffect(() => {
|
||||
scrollToBottom()
|
||||
console.log('throeel')
|
||||
}, [messages])
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue