Skip to content

Commit

Permalink
The Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosen committed Nov 21, 2023
1 parent 844b639 commit 656a64f
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,13 @@ protected function resolveBaseFields(string $type, string $entity_type_id): void
$this->addFieldResolverIfNotExists(
$type,
'name',
$this->builder->produce('entity_label')
->map('entity', $this->builder->fromParent())
$this->builder->compose(
$this->builder->produce('entity_label')
->map('entity', $this->builder->fromParent()),
$this->builder->callback(function ($parent) {
return $parent ?: '';
})
)
);

$this->addFieldResolverIfNotExists($type, 'language',
Expand Down

0 comments on commit 656a64f

Please sign in to comment.