Skip to content

Commit f8b948c

Browse files
fix: rm group bug
1 parent 0556547 commit f8b948c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-monitor-dag",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "一个基于React的运维/监控DAG图",
55
"main": "dist/index.js",
66
"pack": "pack/index.js",

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export default class MonitorDag extends React.Component<ComProps, any> {
284284
this.canvas.addGroups(diffInfo.addGroups);
285285
}
286286
if (diffInfo.rmNodes.length > 0) {
287-
this.canvas.removeNodes(diffInfo.rmNodes.map(item => item.id));
287+
this.canvas.removeNodes(diffInfo.rmGroups.map(item => item.id));
288288
}
289289
if (diffInfo.addNodes.length > 0) {
290290
this.canvas.addNodes(diffInfo.addNodes);

0 commit comments

Comments
 (0)