This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rocketbot-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new ff861f0  Fix: topology itemId bind (#266)
ff861f0 is described below

commit ff861f02bf8c154f18c286846daebf3d4dcda754
Author: Allen Wang <[email protected]>
AuthorDate: Wed Mar 11 22:48:21 2020 +0800

    Fix: topology itemId bind (#266)
---
 src/views/components/topology/chart/topo.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/views/components/topology/chart/topo.vue 
b/src/views/components/topology/chart/topo.vue
index fec731e..eb281d8 100644
--- a/src/views/components/topology/chart/topo.vue
+++ b/src/views/components/topology/chart/topo.vue
@@ -131,7 +131,7 @@ export default {
     update() {
       // node element
       const that = this;
-      this.node = this.node.data(this.nodes);
+      this.node = this.node.data(this.nodes, (d) => d.id);
       this.node.exit().remove();
       this.node = nodeElement(d3, this.node.enter(), this.tool, {
         dragstart: this.dragstart,

Reply via email to