Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed May 4, 2023
1 parent e8c11b2 commit 51caab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function mapItems(Request $request, Model $model): array
->latest()
->paginate($request->input('per_page'))
->withQueryString()
->setPath($this->getUri())
->setPath($this->replaceRoutePlaceholders($request->route()))
->through(function (Model $related) use ($request, $model): array {
return $this->mapOption($request, $model, $related);
})
Expand Down

0 comments on commit 51caab3

Please sign in to comment.