Added downloadedModels as dependecies useEffect

This commit is contained in:
Faisal Amir 2023-11-13 15:13:46 +07:00
parent 2dc0b0b3ea
commit bad29b8a4a

View File

@ -75,7 +75,7 @@ const ChatScreen = () => {
downloadedModels.filter((x) => x.name === currentConvo?.name).length === 0 downloadedModels.filter((x) => x.name === currentConvo?.name).length === 0
) )
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentConvo]) }, [currentConvo, downloadedModels])
const handleSendMessage = async () => { const handleSendMessage = async () => {
if (activeConversationId) { if (activeConversationId) {