Duplicated icon in composer's category dropdown

AI-generated summary

The discussion is about a duplicated icon in the composer’s category dropdown. alltiagocom initially reported the issue and provided screenshots. Arkshine reproduced the problem and identified it as a side-effect of a recent commit that added icons and emojis to categories. The feature was merged five days ago and allows users to choose an icon or emoji when editing a category, making the Category Icons theme component unnecessary. davidb debugged the issue and added an update in this commit to resolve the problem.

It shows twice in the composer and nowhere else (at least that’s the only place where it seems to be acting like this)

image

I don’t know if this helps?

1 Like

Yes, I can reproduce it as well.

It’s a side-effect of FEATURE: add icons and emojis to category (#31795) · discourse/discourse@d06c60c · GitHub.

In the code (ignore me), it seems to miss a default value.

Thank you for checking. Glad to know it isn’t just me.

So is this a new feature, the option to add the icons? I don’t think I remember having this before, but maybe I just overlooked it.

Oh I did… even if I wanted to follow you on that, I wouldn’t be able to haha

1 Like

Yes, it was merged five days ago. This is another popular feature in a TC (Category Icons) that is incorporated into the core.

1 Like

So basically we don’t need the TC anymore, right?

Correct. You can choose to use an icon or emoji when you edit a category.

1 Like

Thank you for reporting, and also thank you @Arkshine for the quick debugging.

I’ve added the update in this commit.

4 Likes

Thank you, David!

1 Like