Added downloadedModels as dependecies useEffect
This commit is contained in:
parent
2dc0b0b3ea
commit
bad29b8a4a
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user