Hotfix category_id lookup (#199)
74dfc39530/assets/javascripts/discourse/components/query-row-content.js (L34-L35)
needed to pass the site object to 'lookup' parent functions and was erroring on category lookup.
This commit is contained in:
parent
479d51faf0
commit
9025646dc9
|
@ -193,7 +193,7 @@ const QueryResultComponent = Component.extend({
|
|||
},
|
||||
|
||||
lookupCategory(id) {
|
||||
return this.site.get("categoriesById")[id];
|
||||
return this.site.categoriesById[id];
|
||||
},
|
||||
|
||||
download_url() {
|
||||
|
|
|
@ -83,6 +83,7 @@
|
|||
@transformedUserTable={{this.transformedUserTable}}
|
||||
@transformedGroupTable={{this.transformedGroupTable}}
|
||||
@transformedTopicTable={{this.transformedTopicTable}}
|
||||
@site={{this.site}}
|
||||
/>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue