Skip to content

Commit

Permalink
Fix: Allow empty icon (None) in icon tags
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Oct 23, 2023
1 parent 6794a6e commit 26097d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_frontend/contrib/icon/templatetags/icon_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@register.inclusion_tag("djangocms_frontend/icon/add_css.html", takes_context=True)
def add_css_for_icon(context, icon):
if icon.get("library", "") in ICON_LIBRARIES:
if icon and icon.get("library", "") in ICON_LIBRARIES:
css_link = ICON_LIBRARIES[icon.get("library")][1]
if css_link:
if "/" not in css_link: # static link?
Expand Down

0 comments on commit 26097d4

Please sign in to comment.