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

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

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

3 curtidas