Skip to content

Commit d661a68

Browse files
authored
🐛 Bugfix: Fix skill count display error when delete a skill has been selected (#3415)
1 parent 0070b9e commit d661a68

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ Nexent is a zero-code platform for auto-generating production-grade AI agents, b
2020

2121
> ⭐ Before you get started, please star us on [GitHub](https://github.com/ModelEngine-Group/nexent) — your support drives us forward!
2222
23-
## Option 1: Try Our Official Demo
24-
25-
No installation required — jump right in with our **[online demo environment](http://60.204.251.153:3000/en)** to experience Nexent's capabilities instantly.
26-
27-
## Option 2: Deploy on Your Own
23+
## Deploy on Your Own
2824

2925
If you need to run Nexent locally or in your private infrastructure, we offer two deployment options:
3026

README_CN.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ Nexent 是一个基于 **Harness Engineering** 原则打造的零代码智能体
2020

2121
> ⭐ 在您开始使用前,请您顺手在 [GitHub](https://github.com/ModelEngine-Group/nexent) 为我们点个 Star,您的支持是我们前进的动力!
2222
23-
## 方式一:使用官方体验环境
24-
25-
无需安装,直接访问我们的 **[在线体验环境](http://60.204.251.153:3000/zh)**,快速体验 Nexent 的强大功能。
26-
27-
## 方式二:自行部署
23+
## 自行部署
2824

2925
如果需要在本地或私有环境中部署 Nexent,我们提供两种部署方式:
3026

frontend/app/[locale]/agents/components/agentConfig/SkillManagement.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ export default function SkillManagement({
151151
const result = await deleteSkill(skill.name);
152152
if (result.success) {
153153
message.success(t("skillManagement.delete.success"));
154+
const currentSkills = useAgentConfigStore.getState().editedAgent.skills;
155+
const updatedSkills = currentSkills.filter((s) => s.skill_id !== skill.skill_id);
156+
updateSkills(updatedSkills);
154157
invalidate();
155158
} else {
156159
message.error(result.message || t("skillManagement.delete.failed"));

0 commit comments

Comments
 (0)