mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 11:58:27 +00:00
After 5fc239b535ece3e4b0c70298b2bc6c62f160d373, the category dropdown was showing "undefined" for the "all-categories" and "no-categories" messages. This commit introduces a check to run the HTML parser only if we're dealing with a real category, which fixes the above issue.