micahstubbs commented on code in PR #2125:
URL: https://github.com/apache/helix/pull/2125#discussion_r888294767


##########
helix-front/client/app/dashboard/dashboard.component.ts:
##########
@@ -172,17 +168,18 @@ export class DashboardComponent implements OnInit, 
AfterViewInit, OnDestroy {
       .subscribe(
         result => {
           _.forEach(result, (resource) => {
-            const newId = this.visNetworkData.nodes.getLength() + 1;
+            const lastId = this.nodes.length;
+            const newId = this.nodes.length + 1;
             this.resourceToId[resource.name] = newId;
-            this.visNetworkData.nodes.add({
+            (this.visNetworkData.nodes as 
Node[])[this.visNetworkData.nodes.length] = {

Review Comment:
   The approach I used was to refer to the diff in the ngx-vis example code at 
the time of their breaking changes.  The changes here mirror the changes that 
the library authors made to their own examples. 
https://github.com/apache/helix/issues/2092#issuecomment-1126406709



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to