From 034166cff17afe79ea164982bae7c62329422e60 Mon Sep 17 00:00:00 2001 From: Jon Uhlmann Date: Thu, 10 Oct 2024 13:46:05 +0200 Subject: [PATCH] Fix: Prevent sorting if it is no array --- Resources/Private/Modules/Component/EmailData.fusion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Private/Modules/Component/EmailData.fusion b/Resources/Private/Modules/Component/EmailData.fusion index 689900c..06cae99 100644 --- a/Resources/Private/Modules/Component/EmailData.fusion +++ b/Resources/Private/Modules/Component/EmailData.fusion @@ -14,7 +14,7 @@ prototype(Garagist.Mautic:Component.EmailData) < prototype(Neos.Fusion:Component subject = ${this.properties.subject} previewText = ${this.properties.previewText} segments = ${this.properties.segments} - sent = ${Array.sort(props.email.properties.sent)} + sent = ${Carbon.Array.check(props.email.properties.sent) ? Array.sort(props.email.properties.sent) : []} hrefArguments = Neos.Fusion:DataStructure { node = ${props.node} email = ${props.email}