Skip to content

Commit bf1498e

Browse files
committed
Fix: Make sure it is an array
1 parent 948f18b commit bf1498e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Resources/Private/Fusion/Component/ByAsset.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ prototype(Garagist.ImageDirectory:ByAsset) < prototype(Neos.Fusion:Component) {
2020
@process.filter = ${Array.filter(value)}
2121
items = ${props.rawList}
2222
itemRenderer = Garagist.ImageDirectory:Helper.AssetDataStructure {
23-
@if.notIgnore = ${Array.indexOf(props.ignoreAssets, item.asset) == -1}
23+
@if.notIgnore = ${Array.indexOf(props.ignoreAssets || [], item.asset) == -1}
2424
asset = ${item.asset}
2525
prefixCopyright = ${props.prefixCopyright}
2626
defaultCopyright = ${props.defaultCopyright}

Resources/Private/Fusion/Component/ByDocument.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ prototype(Garagist.ImageDirectory:ByDocument) < prototype(Neos.Fusion:Component)
2626
@process.filter = ${Array.filter(value)}
2727
items = ${item.assets}
2828
itemRenderer = Garagist.ImageDirectory:Helper.AssetDataStructure {
29-
@if.notIgnore = ${Array.indexOf(props.ignoreAssets, item) == -1}
29+
@if.notIgnore = ${Array.indexOf(props.ignoreAssets || [], item) == -1}
3030
asset = ${item}
3131
prefixCopyright = ${props.prefixCopyright}
3232
defaultCopyright = ${props.defaultCopyright}

0 commit comments

Comments
 (0)