Skip to content

Commit

Permalink
BUGFIX: Don't expect each element to map to a property configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Mar 16, 2024
1 parent 5c1fcd0 commit af67870
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CreationDialogPropertiesCreationHandler implements NodeCreationHandlerInte
public function handle(NodeInterface $node, array $data): void
{
foreach ($data as $propertyName => $propertyValue) {
$propertyConfiguration = $node->getNodeType()->getConfiguration('properties')[$propertyName];
$propertyConfiguration = $node->getNodeType()->getConfiguration('properties')[$propertyName] ?? null;
if (!isset($propertyConfiguration['ui']['showInCreationDialog']) || $propertyConfiguration['ui']['showInCreationDialog'] !== true) {
continue;
}
Expand Down

0 comments on commit af67870

Please sign in to comment.