FIX: Category group picker was broken with category path rename
This commit is contained in:
parent
d0c35633cb
commit
bde0820cd4
|
@ -32,7 +32,7 @@ export default Ember.Component.extend({
|
|||
},
|
||||
onChangeItems: function(items) {
|
||||
var categories = _.map(items, function(link) {
|
||||
var slug = link.match(/href=['"]\/category\/([^'"]+)/)[1];
|
||||
var slug = link.match(/href=['"]\/c\/([^'"]+)/)[1];
|
||||
return Discourse.Category.findSingleBySlug(slug);
|
||||
});
|
||||
self.set("categories", categories);
|
||||
|
|
Loading…
Reference in New Issue