Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Handle case where concept in query view is non-existent
Browse files Browse the repository at this point in the history
Signed-off-by: Don Naegely <[email protected]>
  • Loading branch information
naegelyd committed Oct 3, 2014
1 parent 575e669 commit b12b13e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/js/cilantro/ui/query/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,13 @@ define([

// Retrieve the columns selected
this.model.view.facets.each(function(model) {
var name = c.data.concepts.get(model.get('concept')).get('name'),
var concept = c.data.concepts.get(model.get('concept'));

if (concept === undefined) {
return;
}

var name = concept.get('name'),
sort = model.get('sort');

html.push('<li>' + name);
Expand Down

0 comments on commit b12b13e

Please sign in to comment.