diff --git a/src/Models/TaxonomyTerm.php b/src/Models/TaxonomyTerm.php index 793d962..0a649b5 100644 --- a/src/Models/TaxonomyTerm.php +++ b/src/Models/TaxonomyTerm.php @@ -1108,7 +1108,9 @@ public function getTaggedDataObjects(): ArrayList $relationName = $relation; } - $list->push(self::decorateTaggedDataObject($owner, $fieldName, $relationName)); + if ($owner && $owner->exists()) { + $list->push(self::decorateTaggedDataObject($owner, $fieldName, $relationName)); + } }); } }