Skip to content

Commit

Permalink
Merge pull request #239 from eve-bright/fix-bolt-identity-bug
Browse files Browse the repository at this point in the history
Do not try to stringify identity if it is undefined
  • Loading branch information
oskarhane authored Sep 21, 2016
2 parents 07070ad + 5303f10 commit 4800331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/services/Bolt.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ angular.module('neo4jApp.services')
items = keys.map((key) -> record.get(key))
graphItems = Utils.flattenArray [extractDataForGraphFormat items]
graphItems.map((item) ->
item.id = item.identity.toString()
item.id = item.identity.toString() if item.identity
item
)
nodes = graphItems.filter((item) -> item instanceof bolt.types.Node)
Expand Down

0 comments on commit 4800331

Please sign in to comment.