# Uncategorized showing up on mobile

**URL:** <https://meta.discourse.org/t/uncategorized-showing-up-on-mobile/186839>\
**Category:** Bug\
**Created:** [April 14, 2021, 5:30pm UTC](https://meta.discourse.org/t/uncategorized-showing-up-on-mobile/186839 "2021-04-14T17:30:25Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)\
**Post date:** [April 21, 2021, 7:13pm UTC](https://meta.discourse.org/t/uncategorized-showing-up-on-mobile/186839/11 "2021-04-21T19:13:21Z")

</div>

On desktop we show categories and topics separately, but on mobile we show categories with topics, combined. Keeping that in mind, it is this line that causes the bug:

> <https://github.com/discourse/discourse/blob/main/app/models/category_list.rb#L147>

`c.displayable_topics.blank?` is always true on desktop because we load topics separately so `displayable_topics` is always blank. On mobile, it is true only if there are really no topics in that category.

We have two solutions here:

- show uncategorized if there is at least a topic, no matter the value of ‘allow uncategorized topics’ setting

- hide uncategorized even if there is a topic, if ‘allow uncategorized topics’ is false

The second solution is easier to implement because it means we simply remove the second part of the condition.

---

_[View the full topic](https://meta.discourse.org/t/uncategorized-showing-up-on-mobile/186839)._
