Ensure non-checked out items can be displayed

This commit is contained in:
Marcus Moore 2023-09-28 12:33:20 -07:00
parent 36638feac4
commit 3aa256ec02

View file

@ -19,7 +19,7 @@ class FieldOption {
// we want to avoid returning the property directly
// and instead return the entity's presented name.
if ($dataPath[0] === 'assignedTo'){
return $asset->assignedTo->present()->fullName();
return $asset->assignedTo ? $asset->assignedTo->present()->fullName() : null;
}
return $dataPath->reduce(function ($myValue, $path) {