Skip to content

Commit ae5d67a

Browse files
authored
[5.x] Handle null value gracefully (#13598)
1 parent eaa66b5 commit ae5d67a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Fieldtypes/HasSelectOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function singleSelectGqlType()
181181
'resolve' => function ($item, $args, $context, $info) {
182182
$resolved = $item->resolveGqlValue($info->fieldName);
183183

184-
return is_null($resolved->value()) ? null : $resolved;
184+
return is_null($resolved?->value()) ? null : $resolved;
185185
},
186186
];
187187
}

0 commit comments

Comments
 (0)