From f9407e5466cbd611bab5da92a3cea979fe605cac Mon Sep 17 00:00:00 2001 From: Bernhard Schmitt Date: Tue, 16 Jul 2024 08:16:58 +0200 Subject: [PATCH] Add fallback for node type icon and label --- .../GetNodeTypeFilterOptions/NodeTypeFilterOption.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Application/GetNodeTypeFilterOptions/NodeTypeFilterOption.php b/Classes/Application/GetNodeTypeFilterOptions/NodeTypeFilterOption.php index 717d744..e2bf2f3 100644 --- a/Classes/Application/GetNodeTypeFilterOptions/NodeTypeFilterOption.php +++ b/Classes/Application/GetNodeTypeFilterOptions/NodeTypeFilterOption.php @@ -32,8 +32,8 @@ public static function fromNodeType(NodeType $nodeType): self { return new self( value: $nodeType->getName(), - icon: $nodeType->getConfiguration('ui.icon'), - label: $nodeType->getConfiguration('ui.label'), + icon: $nodeType->getConfiguration('ui.icon') ?: 'question', + label: $nodeType->getConfiguration('ui.label') ?: $nodeType->getName(), ); }