# Top topics text missing

**URL:** <https://meta.discourse.org/t/top-topics-text-missing/321363>\
**Category:** Bug\
**Tags:** fixed\
**Created:** [August 13, 2024, 12:06am UTC](https://meta.discourse.org/t/top-topics-text-missing/321363 "2024-08-13T00:06:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [August 13, 2024, 2:44am UTC](https://meta.discourse.org/t/top-topics-text-missing/321363/3 "2024-08-13T02:44:50Z")

</div>

Here is a quick look to help figure out the issue before bed. 😄

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/helpers/category-link.js#L159](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/helpers/category-link.js#L159)

`displayName` doesn’t exist. There is a `name` field instead.

The changes happen in this commit:

[https://github.com/discourse/discourse/commit/c197daa04c3114184cbd3ec2f1cfade1b5701793](https://github.com/discourse/discourse/commit/c197daa04c3114184cbd3ec2f1cfade1b5701793)

It seems to miss the getters in the context of user summary since the data is retrieved from `/summary.json`.

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/models/user.js#L1068-L1073](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/models/user.js#L1068-L1073)

Maybe mapping `top_categories` with `Category.create()` or a basic specific class would be okay.

---

_[View the full topic](https://meta.discourse.org/t/top-topics-text-missing/321363)._
