Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed May 27, 2024
1 parent 93f28a8 commit 145cc78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/HasMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function addMedia(
if ($this->relationLoaded('media')) {
$this->setRelation(
'media',
$this->media->push($media)
$this->media->push($media->withoutRelations())
);
}

Expand Down

0 comments on commit 145cc78

Please sign in to comment.