# JavaScript Error in logs: evaluating this.get("dropDownContent")

**URL:** <https://meta.discourse.org/t/javascript-error-in-logs-evaluating-this-get-dropdowncontent/24051>\
**Category:** Bug\
**Created:** [15. Januar 2015 um 19:47 UTC](https://meta.discourse.org/t/javascript-error-in-logs-evaluating-this-get-dropdowncontent/24051 "2015-01-15T19:47:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [15. Januar 2015 um 20:44 UTC](https://meta.discourse.org/t/javascript-error-in-logs-evaluating-this-get-dropdowncontent/24051/2 "2015-01-15T20:44:46Z")

</div>

I’m actually not sure how this could be caused since both of the cases where we use the dropdown button should _always_ have content.

Still, it’s safer to check for it when rendering so I committed this defensively:

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

I wouldn’t be surprised if there is a root cause out there still to track down but it should prevent errors.

---

_[View the full topic](https://meta.discourse.org/t/javascript-error-in-logs-evaluating-this-get-dropdowncontent/24051)._
