diff --git a/app/js/directives/directive-component-select.js b/app/js/directives/directive-component-select.js index 038d93ea..c729d6d9 100755 --- a/app/js/directives/directive-component-select.js +++ b/app/js/directives/directive-component-select.js @@ -3,18 +3,18 @@ angular.module('app').directive('componentSelect', function () { // Generting the HTML in this manner is MUCH faster than using an angular template. function appendGroup(list, opts, cid, mass) { - var prevClass = null, prevRating = null; + var prevClass = null; for (var i = 0; i < opts.length; i++) { var o = opts[i]; var id = o.id || (o.class + o.rating); // Common components' ID is their class and rating - if(i > 0 && opts.length > 3 && o.class != prevClass && (o.rating != prevRating || o.mode)) { + if(i > 0 && opts.length > 3 && o.class != prevClass && o.grp != 'cr') { list.push('
'); } list.push('