Skip to content

Commit

Permalink
fix: Issue (HasMany resource item)
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Oct 11, 2024
1 parent ac98df6 commit d412f78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Fields/Relationships/HasOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ private function getFieldsOnPreview(): Closure
protected function resolveValue(): MoonShineRenderable
{
$resource = $this->getResource();
$resource->stopGettingItemFromUrl();

/** @var ModelResource $parentResource */
$parentResource = moonshineRequest()->getResource();
Expand Down

0 comments on commit d412f78

Please sign in to comment.