Skip to content

Commit

Permalink
IBX-5187: Fixed content's field resolving (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 authored Mar 13, 2023
1 parent b6a7ea2 commit 987293f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQL/Value/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public function __toString()

public static function fromField(?ApiValues\Content\Field $field)
{
return new self(get_object_vars($field));
return $field === null ? $field : new self(get_object_vars($field));
}
}

0 comments on commit 987293f

Please sign in to comment.