Skip to content

Commit 4b73d81

Browse files
committed
bug fix in condense visualization function
1 parent 88bbd2e commit 4b73d81

File tree

1 file changed

+3
-3
lines changed
  • src/main/resources/static/js

1 file changed

+3
-3
lines changed

src/main/resources/static/js/knox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ window.onresize = function(e) {
7878
* @param graph design space graph
7979
*/
8080
export function condenseVisualization(graph){
81-
let sourceTargetMap = [];
81+
let sourceTargetMap = {};
8282

8383
for(let i=0; i<graph.links.length; i++) {
8484
// add optional flag to all links
@@ -87,8 +87,8 @@ export function condenseVisualization(graph){
8787
graph.links[i].hasReverseOrient = false;
8888

8989
//get all source/target pairs
90-
let sourceNode = graph.links[i].source.nodeID;
91-
let targetNode = graph.links[i].target.nodeID;
90+
let sourceNode = graph.links[i].source.toString();
91+
let targetNode = graph.links[i].target.toString();
9292
let stPairNum = sourceNode + targetNode;
9393

9494
if(!(stPairNum in sourceTargetMap)){

0 commit comments

Comments
 (0)