Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: type fable starter config (#15618)

YuTengjing1ed93b6a2447
diff --git a/src/routes/(main)/home/features/InputArea/StarterList.tsx b/src/routes/(main)/home/features/InputArea/StarterList.tsx
index e0ee78583b4..adbc1146e49 100644
--- a/src/routes/(main)/home/features/InputArea/StarterList.tsx
+++ b/src/routes/(main)/home/features/InputArea/StarterList.tsx
@@ -5,7 +5,10 @@ import { createStaticStyles, cx } from 'antd-style';
import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
-import { useBusinessModelModeConfig } from '@/business/client/hooks/useBusinessAgentMode';
+import {
+ type BusinessModelModeConfig,
+ useBusinessModelModeConfig,
+} from '@/business/client/hooks/useBusinessAgentMode';
import type { HomeNewModelItem } from '@/business/client/hooks/useHomeNewModels';
import { useHomeNewModels } from '@/business/client/hooks/useHomeNewModels';
import { useStableNavigate } from '@/hooks/useStableNavigate';
@@ -82,7 +85,7 @@ const StarterList = memo(() => {
const currentModel = agentByIdSelectors.getAgentModelById(activeAgentId)(agentState);
const currentProvider =
agentByIdSelectors.getAgentModelProviderById(activeAgentId)(agentState);
- const nextConfig = applyBusinessModelModeConfig({
+ const nextConfig: BusinessModelModeConfig = applyBusinessModelModeConfig({
model: item.model,
provider,
});