File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export class GraphViewService {
26
26
this . elementRemover = new BehaviorSubject < Array < string > > ( [ ] ) ;
27
27
28
28
this . modelService . getObservableForInstances ( ) . subscribe ( ( change : Change ) => {
29
+ console . log ( 'received notification in graph view service' , change ) ;
29
30
if ( change . elements !== undefined ) {
30
31
switch ( change . type ) {
31
32
case Actions . ADD :
@@ -44,7 +45,7 @@ export class GraphViewService {
44
45
}
45
46
46
47
private addElements ( instances : Array < Instance > ) {
47
- console . log ( 'received new instance' , instances ) ;
48
+ console . log ( 'received new instance in graph view service ' , instances ) ;
48
49
const newElements : NodeEdgeMap = instances . reduce (
49
50
( accumulator : NodeEdgeMap , value : Instance ) => {
50
51
Original file line number Diff line number Diff line change @@ -81,5 +81,5 @@ export function payloadIsInstanceLink(payload: any): payload is InstanceLink {
81
81
82
82
83
83
export function objectIsMessage ( obj : any ) : obj is RegistryEvent {
84
- return obj . eventType !== undefined && obj . payload !== undefined ;
84
+ return obj !== null && obj . eventType !== undefined && obj . payload !== undefined ;
85
85
}
You can’t perform that action at this time.
0 commit comments