diff --git a/src/Services/Listings/Columns/Relation.php b/src/Services/Listings/Columns/Relation.php index c4af259d9..6e818c90c 100644 --- a/src/Services/Listings/Columns/Relation.php +++ b/src/Services/Listings/Columns/Relation.php @@ -52,6 +52,6 @@ protected function getRenderValue(TwillModelContract $model): string if (is_a($relation, 'Illuminate\Database\Eloquent\Model')) { $relation = collect([$relation]); } - return $relation->pluck($this->field)->join(', '); + return is_null($relation) ? '' : $relation->pluck($this->field)->join(', '); } }