Permalink
Browse files

Ensure groups have valid metadata

  • Loading branch information...
1 parent e76a496 commit d582f9207c0d83243feb567a27a1b3eab4f7858a @bergie bergie committed Mar 2, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/Graph.coffee
View
@@ -745,7 +745,7 @@ exports.loadJSON = (definition, success, metadata = {}) ->
if definition.groups
for group in definition.groups
- graph.addGroup group.name, group.nodes, group.metadata
+ graph.addGroup group.name, group.nodes, group.metadata || {}
graph.endTransaction 'loadJSON'

0 comments on commit d582f92

Please sign in to comment.