From cf2e62eec1d5d1e60a15435dbcb1e0ad5987de8d Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Tue, 7 Jan 2025 12:16:23 +0100 Subject: [PATCH] BUGFIX: Raw content mode for nodes without node type with https://github.com/neos/neos-development-collection/pull/5287 `Neos.Node.nodeType` can be `NULL` (and thus `.properties`) which causes a type error if passed to `sortByPropertyPath` related https://github.com/neos/neos-development-collection/issues/5402#issuecomment-2541836366 --- .../Resources/Private/Fusion/RawContent/NodeProperties.fusion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Neos.Neos/Resources/Private/Fusion/RawContent/NodeProperties.fusion b/Neos.Neos/Resources/Private/Fusion/RawContent/NodeProperties.fusion index a8848d62d85..72dc10b7b96 100644 --- a/Neos.Neos/Resources/Private/Fusion/RawContent/NodeProperties.fusion +++ b/Neos.Neos/Resources/Private/Fusion/RawContent/NodeProperties.fusion @@ -1,6 +1,6 @@ prototype(Neos.Neos:RawContent.NodeProperties) < prototype(Neos.Fusion:Component) { @private { - items = ${Neos.Node.nodeType(node).properties} + items = ${Neos.Node.nodeType(node).properties || {}} items.@process.sort = ${Neos.Array.sortByPropertyPath(value, 'ui.inspector.position')} }