Skip to content

Commit

Permalink
IBX-9420: Updated the condition to handle cases where the field is no…
Browse files Browse the repository at this point in the history
…t selected.
  • Loading branch information
mateuszdebinski committed Jan 22, 2025
1 parent f82eac8 commit 60228db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Resolver/SelectionFieldResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(

public function resolveSelectionFieldValue(?Field $field, Content $content)
{
if ($field === null) {
if ($field === null || empty($field->value->selection)) {
return null;
}

Expand Down

0 comments on commit 60228db

Please sign in to comment.