lint-fix
This commit is contained in:
parent
7f3d850bf6
commit
34bfd4c793
|
|
@ -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(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue