diff --git a/app/Models/Traits/UsesLinkedFields.php b/app/Models/Traits/UsesLinkedFields.php index 68be03d2a..6eb9f5288 100644 --- a/app/Models/Traits/UsesLinkedFields.php +++ b/app/Models/Traits/UsesLinkedFields.php @@ -225,7 +225,7 @@ private function mapValue($model, string $property, array $linkedFieldInfo) if (empty($resource)) { return $model->$relation; } - if (empty($model->$relation)) { + if (empty($model->$relation) || !is_iterable($model->$relation)) { return []; }