Skip to content

Commit 2d17654

Browse files
Msquittto陈潇文
andauthored
[frontend] Remove the condition that the groupId must be different when updating the knowledge base configuration. (#191)
Co-authored-by: 陈潇文 <chenxiaowen17@huawei.com>
1 parent 87d361a commit 2d17654

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

app-engine/frontend/src/pages/configForm/configUi/components/knowledge-container.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,10 @@ const KnowledgeContainer = (props) => {
7474
const updateKnowledgeOption = (groupId: String, knowledgeConfigId:String) => {
7575
setGroupId(groupId);
7676
setKnowledgeConfigId(knowledgeConfigId);
77-
if (curGroupValue.current.groupId !== groupId) {
78-
curGroupValue.current.groupId = groupId;
79-
curGroupValue.current.knowledgeConfigId = knowledgeConfigId;
80-
graphOperator.update(groupConfig, curGroupValue.current);
81-
updateData();
82-
}
77+
curGroupValue.current.groupId = groupId;
78+
curGroupValue.current.knowledgeConfigId = knowledgeConfigId;
79+
graphOperator.update(groupConfig, curGroupValue.current);
80+
updateData();
8381
}
8482

8583
// 更新每一条是否存在

0 commit comments

Comments
 (0)