diff --git a/js/id/graph/graph.js b/js/id/graph/graph.js index 593124927..d5ea1dcf8 100644 --- a/js/id/graph/graph.js +++ b/js/id/graph/graph.js @@ -31,7 +31,8 @@ iD.Graph.prototype = { parentRelations: function(id) { // This is slow and a bad hack. return _.filter(this.entities, function(e) { - return e && e.type === 'relation' && e.members.indexOf(id) !== -1; + return e && e.type === 'relation' && + _.pluck(e.members, 'id').indexOf(id) !== -1; }); },