Skip to content

Commit ceaa1e1

Browse files
committed
fix type error
1 parent 3c68966 commit ceaa1e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gui/src/components/modelSelection/platform/AssistantSelect.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const AssistantSelectOption = ({
5353
const tinyFont = useFontSize(-4);
5454

5555
const navigate = useNavigate();
56+
const { setSelectedSection } = useLump();
5657

5758
const hasFatalErrors = useMemo(() => {
5859
return !!profile.errors?.find((error) => error.fatal);
@@ -78,7 +79,8 @@ const AssistantSelectOption = ({
7879

7980
function handleClickError() {
8081
if (profile.id === "local") {
81-
navigate(ROUTES.CONFIG_ERROR);
82+
navigate(ROUTES.HOME);
83+
setSelectedSection("error");
8284
} else {
8385
ideMessenger.post("config/openProfile", { profileId: profile.id });
8486
}

0 commit comments

Comments
 (0)