A platform for community discussion. Free, open, simple.
FIX: category badge style missing data attr (#32253)
David Battersby7c4787256d3d
diff --git a/app/assets/javascripts/discourse/app/lib/hashtag-decorator.js b/app/assets/javascripts/discourse/app/lib/hashtag-decorator.jsindex eed03bd9183..f588af87b05 100644--- a/app/assets/javascripts/discourse/app/lib/hashtag-decorator.js+++ b/app/assets/javascripts/discourse/app/lib/hashtag-decorator.js@@ -109,13 +109,13 @@ export function decorateHashtags(element, site) {icon: site.hashtag_icons[hashtagType],id: hashtagEl.dataset.id,slug: hashtagEl.dataset.slug,- style_type: hashtagEl.dataset.styleType,+ style_type: hashtagEl.dataset.styleType || "square",};- if (hashtagEl.dataset.styleType === "icon") {+ if (opts.style_type === "icon") {opts.icon = hashtagEl.dataset.icon;}- if (hashtagEl.dataset.styleType === "emoji") {+ if (opts.style_type === "emoji") {opts.emoji = hashtagEl.dataset.emoji;}