diff --git a/extensions/tags/js/src/common/helpers/tagIcon.js b/extensions/tags/js/src/common/helpers/tagIcon.js index 1e5ba9066..d091f04e0 100644 --- a/extensions/tags/js/src/common/helpers/tagIcon.js +++ b/extensions/tags/js/src/common/helpers/tagIcon.js @@ -1,6 +1,6 @@ export default function tagIcon(tag, attrs = {}, settings = {}) { const hasIcon = tag && tag.icon(); - const useColor = settings.useColor || true; + const { useColor = true } = settings; attrs.className = hasIcon ? 'icon ' + tag.icon() + ' ' + (attrs.className || '') : 'icon TagIcon ' + (attrs.className || '');