Skip to content
Browse files

Only write group metadata when there is metadata

  • Loading branch information...
1 parent d582f92 commit 8b93d600d83fe0c9c0d760de2eee5d3376a6b334 @bergie bergie committed Mar 2, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/Graph.coffee
View
2 src/lib/Graph.coffee
@@ -652,7 +652,7 @@ class Graph extends EventEmitter
groupData =
name: group.name
nodes: group.nodes
- if group.metadata
+ if Object.keys(group.metadata).length
groupData.metadata = group.metadata
json.groups.push groupData

0 comments on commit 8b93d60

Please sign in to comment.
Something went wrong with that request. Please try again.