# Empty „Your topic is similar to...”

**URL:** https://meta.discourse.org/t/empty-your-topic-is-similar-to/25689
**Category:** Bug
**Created:** [2015年二月25日 18:19 UTC](https://meta.discourse.org/t/empty-your-topic-is-similar-to/25689 "2015-02-25T18:19:19Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)
#### Post date: [2015年二月25日 18:19 UTC](https://meta.discourse.org/t/empty-your-topic-is-similar-to/25689/1 "2015-02-25T18:19:19Z")

</div>

Hi!

On a new forum (50 topics atm), i see the similar topic box to be empty pretty often. I’m not sure what’s the algorithm for displaying that, but i think it should be hidden if there are no results, no?

---

<div class="post-metadata">

### Author: ![davemaxwell](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davemaxwell/32/108393_2.png) [@davemaxwell](https://meta.discourse.org/u/davemaxwell)
#### Post date: [2015年二月25日 18:28 UTC](https://meta.discourse.org/t/empty-your-topic-is-similar-to/25689/2 "2015-02-25T18:28:50Z")

</div>

I noticed that earlier today on another instance of discourse. I agree - doesn’t seem like it should be displayed if there’s nothing there…

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2015年二月25日 18:45 UTC](https://meta.discourse.org/t/empty-your-topic-is-similar-to/25689/3 "2015-02-25T18:45:38Z")

</div>

Not sure what’s happening but there is a check

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/controllers/composer.js.es6#L300](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/controllers/composer.js.es6#L300)

---

<div class="post-metadata">

### Author: ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)
#### Post date: [2015年二月25日 19:29 UTC](https://meta.discourse.org/t/empty-your-topic-is-similar-to/25689/4 "2015-02-25T19:29:49Z")

</div>

The problem is easy to reproduce with these steps:

1. Add a title

- start adding content in order to get valid suggestion (the popup shows)
- continue adding content until there is no suggestions left (the popup remain)

I can reproduce (almost) every time 😄

* * *

edit: i even succeeded to reproduce on meta.discourse, but apparently it’s not every time, but only once in a while

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2015年二月25日 20:34 UTC](https://meta.discourse.org/t/empty-your-topic-is-similar-to/25689/5 "2015-02-25T20:34:24Z")

</div>

Thanks, I have a repro. Will fix 😄

![](https://global.discourse-cdn.com/meta/original/3X/c/5/c5a710e68927622cbbaa123f974b9cb937c0d6d7.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年二月26日 04:08 UTC](https://meta.discourse.org/t/empty-your-topic-is-similar-to/25689/6 "2015-02-26T04:08:51Z")

</div>

I think this is fixed now? There used to be logic to prevent that from appearing until the number of topics was high enough to support it…

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2015年二月26日 08:42 UTC](https://meta.discourse.org/t/empty-your-topic-is-similar-to/25689/9 "2015-02-26T08:42:34Z")

</div>

Not fixed yet. @eviltrout will have to have a look because I can’t figure out why it’s not hiding the popup when the code is right ☹

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年三月3日 01:09 UTC](https://meta.discourse.org/t/empty-your-topic-is-similar-to/25689/10 "2015-03-03T01:09:08Z")

</div>


