File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ class GraphGenerator {
105105 isPresent
106106 ) ;
107107 const missingNodeNames = _ . difference ( expectedNodeNames , existingNodeNames ) ;
108-
109108 const missingNodes = _ . map ( missingNodeNames , name => {
110109 let nodeType : EnGraphNodeType ;
111110 let external_type : string | undefined ;
@@ -130,10 +129,8 @@ class GraphGenerator {
130129 metrics : { } ,
131130 } ,
132131 } ;
133-
134132 return value ;
135133 } ) ;
136-
137134 return missingNodes ;
138135 }
139136
@@ -152,7 +149,6 @@ class GraphGenerator {
152149
153150 // ensure that all nodes exist, even we have no data for them
154151 const missingNodes = this . _createMissingNodes ( filteredData , nodes ) ;
155-
156152 return _ . concat ( nodes , missingNodes ) ;
157153 }
158154
@@ -224,7 +220,7 @@ class GraphGenerator {
224220 const id = node . data . id ;
225221
226222 // don't filter connected elements
227- if ( _ . some ( graph . edges , { 'data. source' : id } ) || _ . some ( graph . edges , { 'data. target' : id } ) ) {
223+ if ( _ . some ( graph . edges , { source : id } ) || _ . some ( graph . edges , { target : id } ) ) {
228224 return true ;
229225 }
230226
@@ -258,7 +254,6 @@ class GraphGenerator {
258254 } ;
259255
260256 const filteredGraph = this . _filterData ( graph ) ;
261-
262257 return filteredGraph ;
263258 }
264259}
You can’t perform that action at this time.
0 commit comments