Skip to content

Commit

Permalink
Merge pull request #4321 from archesproject/4300_primary_descriptor_bug
Browse files Browse the repository at this point in the history
allows all cards in descriptor function
  • Loading branch information
robgaston authored Nov 27, 2018
2 parents 05d828a + ff30596 commit 2ffa08b
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@ function($, _, arches, ko, koMapping, FunctionViewModel, chosen) {
});

this.graph.cards.forEach(function(card){
var found = !!_.find(this.graph.nodegroups, function(nodegroup){
return nodegroup.parentnodegroup_id === card.nodegroup_id;
}, this);
if(!found && !(card.nodegroup_id in nodegroups)){
this.cards.push(card);
nodegroups[card.nodegroup_id] = true;
}
this.cards.push(card);
nodegroups[card.nodegroup_id] = true;
}, this);

this.name = params.config.name;
Expand Down

0 comments on commit 2ffa08b

Please sign in to comment.