From e94458317a5897fc6e40d38c7c0c2cdc5a304315 Mon Sep 17 00:00:00 2001 From: Konv Suu <2583695112@qq.com> Date: Wed, 6 Aug 2025 19:27:02 +0800 Subject: [PATCH] fix(agents): cancel import situation (#8883) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(agents): 修复未处理的代理导入情况 --- src/renderer/src/pages/agents/components/ImportAgentPopup.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/src/pages/agents/components/ImportAgentPopup.tsx b/src/renderer/src/pages/agents/components/ImportAgentPopup.tsx index 8c32b81f41..a940db5772 100644 --- a/src/renderer/src/pages/agents/components/ImportAgentPopup.tsx +++ b/src/renderer/src/pages/agents/components/ImportAgentPopup.tsx @@ -45,6 +45,8 @@ const PopupContainer: React.FC = ({ resolve }) => { if (!Array.isArray(agents)) { agents = [agents] } + } else { + return } }