From ceaa1e18a3714e7abe7b3d88f1d4683a69720945 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 18 Apr 2025 16:43:44 -0700 Subject: [PATCH] fix type error --- .../components/modelSelection/platform/AssistantSelect.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/src/components/modelSelection/platform/AssistantSelect.tsx b/gui/src/components/modelSelection/platform/AssistantSelect.tsx index 7c08998cb..f58a4194a 100644 --- a/gui/src/components/modelSelection/platform/AssistantSelect.tsx +++ b/gui/src/components/modelSelection/platform/AssistantSelect.tsx @@ -53,6 +53,7 @@ const AssistantSelectOption = ({ const tinyFont = useFontSize(-4); const navigate = useNavigate(); + const { setSelectedSection } = useLump(); const hasFatalErrors = useMemo(() => { return !!profile.errors?.find((error) => error.fatal); @@ -78,7 +79,8 @@ const AssistantSelectOption = ({ function handleClickError() { if (profile.id === "local") { - navigate(ROUTES.CONFIG_ERROR); + navigate(ROUTES.HOME); + setSelectedSection("error"); } else { ideMessenger.post("config/openProfile", { profileId: profile.id }); }