Skip to content

Commit

Permalink
Fixed bug where port data was not serializing
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrishnasanka committed Feb 21, 2019
1 parent 426468f commit 3f199f4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app/core/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,12 @@ export default class Component {
output.yspan = bounds.height;
let portdata = [];
let map = this.ports;
if(this.map)
for(let key of map.keys()){
let p = map.get(key).toInterchangeV1();
portdata.push(p);
if(map != null){
for(let key of map.keys()){
let p = map.get(key).toInterchangeV1();
portdata.push(p);
}

}

output.ports = portdata;
Expand Down

0 comments on commit 3f199f4

Please sign in to comment.