Fix state loading when active model from hub

This commit is contained in:
Faisal Amir 2023-12-04 22:38:53 +07:00
parent 491f4d7289
commit bd9acf0971

View File

@ -59,9 +59,7 @@ export default function DropdownListSidebar() {
} }
}) })
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, [activeThread, activeModel]) }, [activeThread, activeModel, stateModel.loading])
if (stateModel.loading) return null
return ( return (
<Select <Select