Skip to content

Commit

Permalink
Add fallback for node type icon and label
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Schmitt committed Jul 16, 2024
1 parent 9a88fa2 commit f9407e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
}

Expand Down

0 comments on commit f9407e5

Please sign in to comment.