File tree 1 file changed +13
-9
lines changed
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -1744,16 +1744,20 @@ var hivtrace_cluster_network_graph = function (
1744
1744
}
1745
1745
entity_count ++ ;
1746
1746
} ) ;
1747
- self . json [ "Network Summary" ] [ "Nodes" ] = entity_count ;
1748
- self . json [ "Network Summary" ] [ "Clusters" ] = _ . size (
1749
- self . cluster_sizes_in_entities
1750
- ) ;
1751
- self . json [ "Cluster sizes" ] = [ ] ;
1752
- _ . each ( self . cluster_sizes_in_entities , ( d , c ) => {
1753
- self . json [ "Cluster sizes" ] . push ( d ) ;
1754
- } ) ;
1747
+ if ( self . json [ "Network Summary" ] ) {
1748
+ self . json [ "Network Summary" ] [ "Nodes" ] = entity_count ;
1749
+ self . json [ "Network Summary" ] [ "Clusters" ] = _ . size (
1750
+ self . cluster_sizes_in_entities
1751
+ ) ;
1752
+ self . json [ "Cluster sizes" ] = [ ] ;
1753
+ _ . each ( self . cluster_sizes_in_entities , ( d , c ) => {
1754
+ self . json [ "Cluster sizes" ] . push ( d ) ;
1755
+ } ) ;
1756
+ }
1755
1757
} else {
1756
- self . json [ "Network Summary" ] [ "Clusters" ] = cluster_set . size ;
1758
+ if ( self . json [ "Network Summary" ] ) {
1759
+ self . json [ "Network Summary" ] [ "Clusters" ] = cluster_set . size ;
1760
+ }
1757
1761
}
1758
1762
1759
1763
/* add buttons and handlers */
You can’t perform that action at this time.
0 commit comments