From bd9acf0971699172407796e451ffa9bc0e9ba28e Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Mon, 4 Dec 2023 22:38:53 +0700 Subject: [PATCH] Fix state loading when active model from hub --- web/containers/DropdownListSidebar/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/containers/DropdownListSidebar/index.tsx b/web/containers/DropdownListSidebar/index.tsx index 84bc6623b..249c06588 100644 --- a/web/containers/DropdownListSidebar/index.tsx +++ b/web/containers/DropdownListSidebar/index.tsx @@ -59,9 +59,7 @@ export default function DropdownListSidebar() { } }) // eslint-disable-next-line react-hooks/exhaustive-deps - }, [activeThread, activeModel]) - - if (stateModel.loading) return null + }, [activeThread, activeModel, stateModel.loading]) return (