Skip to content

Commit

Permalink
Merge pull request #156 from puzzledmonkey/patch-1
Browse files Browse the repository at this point in the history
Update WithHeadingFinder.php to fix heading fields for lens exports
  • Loading branch information
patrickbrouwers authored Oct 26, 2023
2 parents 74e3568 + cc2e691 commit edbc721
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Requests/WithHeadingFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ trait WithHeadingFinder
public function findHeading(string $attribute, string $default = null)
{
// In case attribute is used multiple times, grab last Field.
$field = $this
->newResource()
->indexFields($this)
$field = collect($this->resourceFields($this->newResource()))
->where('attribute', $attribute)
->last();

Expand Down

0 comments on commit edbc721

Please # to comment.