Skip to content

Commit

Permalink
We need to register all graphs for fbp-spec compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Sep 1, 2020
1 parent 77b70d1 commit d38ea4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protocol/Graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ class GraphProtocol extends EventEmitter {
},
context);

// Register for runtime exported ports
this.transport.runtime.registerNetwork(payload.id, network);
if (payload.main) {
// Register for runtime exported ports
this.transport.runtime.registerNetwork(payload.id, network);
this.transport.runtime.setMainGraph(fullName, graph, context);
} else {
// Register to component loading
Expand Down

0 comments on commit d38ea4b

Please sign in to comment.