Skip to content

Commit

Permalink
Merge pull request #18 from sitegeist/combined-identifier
Browse files Browse the repository at this point in the history
BUGFIX: handle identifier properly
  • Loading branch information
mficzel authored Jul 25, 2023
2 parents b5016ba + 3776718 commit c478c3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ prototype(Vendor.Site:Component.SvgIcon) < prototype(Neos.Fusion:Component) {
renderer = Sitegeist.Stampede:Icon {
identifier = ${props.identifier}
icon = ${props.icon}
class = "svgIcon"
style = null
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Icon.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ prototype(Sitegeist.Stampede:Icon) < prototype(Neos.Fusion:Component) {
viewBox= '0 0 512 512'

@private {
collectionAndIcon = ${props.identifier ? String.split(props.identifier, ':', 2)[0] : [props.collection, props.icon]}
collectionAndIcon = ${props.identifier ? String.split(props.identifier, ':', 2) : [props.collection, props.icon]}
}

renderer = Neos.Fusion:Case {
Expand Down

0 comments on commit c478c3d

Please sign in to comment.