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:
Isaac Janzen 2022-12-15 08:26:40 -06:00 committed by GitHub
parent 479d51faf0
commit 9025646dc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -193,7 +193,7 @@ const QueryResultComponent = Component.extend({
}, },
lookupCategory(id) { lookupCategory(id) {
return this.site.get("categoriesById")[id]; return this.site.categoriesById[id];
}, },
download_url() { download_url() {

View File

@ -83,6 +83,7 @@
@transformedUserTable={{this.transformedUserTable}} @transformedUserTable={{this.transformedUserTable}}
@transformedGroupTable={{this.transformedGroupTable}} @transformedGroupTable={{this.transformedGroupTable}}
@transformedTopicTable={{this.transformedTopicTable}} @transformedTopicTable={{this.transformedTopicTable}}
@site={{this.site}}
/> />
{{/each}} {{/each}}
</tbody> </tbody>