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: slove the publish to market the agent config error (#10440)

Shinji-Lifda8119967b0
diff --git a/src/app/[variants]/(main)/chat/settings/features/SmartAgentActionButton/MarketPublishModal.tsx b/src/app/[variants]/(main)/chat/settings/features/SmartAgentActionButton/MarketPublishModal.tsx
index 9f9489b603e..f2733a2093a 100644
--- a/src/app/[variants]/(main)/chat/settings/features/SmartAgentActionButton/MarketPublishModal.tsx
+++ b/src/app/[variants]/(main)/chat/settings/features/SmartAgentActionButton/MarketPublishModal.tsx
@@ -170,11 +170,13 @@ const MarketPublishModal = memo<MarketPublishModalProps>(
provider,
},
plugins:
- plugins?.map((plugin) => ({
- enabled: true,
- identifier: plugin,
- settings: {},
- })) || [],
+ plugins?.map((plugin) => {
+ if (typeof plugin === 'string') {
+ return plugin;
+ } else {
+ return null
+ }
+ }) || [],
systemRole: systemRole,
},
description: meta?.description || '',