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
)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentConvo])
}, [currentConvo, downloadedModels])
const handleSendMessage = async () => {
if (activeConversationId) {