Skip to content
Snippets Groups Projects
Unverified Commit 7abdd020 authored by Acha Bill's avatar Acha Bill Committed by GitHub
Browse files

clear trunk and branch tip state onces they are referenced (#544)

parent c133ef18
Branches
Tags
No related merge requests found
......@@ -108,6 +108,18 @@ export class VisualizerStore {
}
this.verticesIncomingOrder.push(vert.id);
this.checkLimit();
//clear trunk and branch tip state
let trunkVert = this.vertices.get(vert.trunk_id)
let branchVert = this.vertices.get(vert.branch_id)
if(trunkVert) {
trunkVert.is_tip = false
this.vertices.set(trunkVert.id, trunkVert)
}
if(branchVert){
branchVert.is_tip = false
this.vertices.set(branchVert.id, branchVert)
}
}
this.vertices.set(vert.id, vert);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment