Community

Icons with the wrong icon_set

Hello Community! 👋

I’m building a module that includes an icon field and despite having fontawesome-6.4.2 as the default icon_set, when I select certain icons I get the following error in the DOM (using ?hsDebug=true): 

TemplateError{severity=FATAL, reason=SYNTAX_ERROR, item=OTHER, message=’Error in `/my-theme/modules/navigation.module/module.html` on line 42: InterpretException: Can’t find icon ‘arrow up right dots’ in set ‘fontawesome-5.0.10”, fieldName=’null’, lineno=10, startPosition=1, scopeDepth=5, category=UNKNOWN, categoryErrors=null}


So I clearly see it’s trying to find the icon in the wrong icon_set, what I don’t understand is why the icon set is not correct 🤔

This is the code used to display the icon: 



{% icon

name=”{{module.tab_icon.name}}”,

style=”{{module.tag_icon.type}}”,

unicode=”{{module.tag_icon.unicode}}”,

icon_set=”{{module.tab_icon.icon_set}}”,

width=”20″,

height=”20″

%}




When I print the {{module.tab_icon.icon_set value alone}}, it shows the correct icon_set, so I’m not sure why it’s selecting a different icon_set when loading the icon. 

Has anyone encountered a similar issue? It feels like just a simple thing yet it’s driving me crazy 😑

Thank you!

LEAVE A RESPONSE

Your email address will not be published. Required fields are marked *