Skip to content

Commit edbc721

Browse files
Merge pull request #156 from puzzledmonkey/patch-1
Update WithHeadingFinder.php to fix heading fields for lens exports
2 parents 74e3568 + cc2e691 commit edbc721

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Requests/WithHeadingFinder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ trait WithHeadingFinder
1212
public function findHeading(string $attribute, string $default = null)
1313
{
1414
// In case attribute is used multiple times, grab last Field.
15-
$field = $this
16-
->newResource()
17-
->indexFields($this)
15+
$field = collect($this->resourceFields($this->newResource()))
1816
->where('attribute', $attribute)
1917
->last();
2018

0 commit comments

Comments
 (0)