Skip to content

Commit

Permalink
Fix Asset List Export
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddmd committed Jul 17, 2022
1 parent 6b9f5b6 commit 5410c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Exports/AssetListExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AssetListExport implements FromView, WithStyles, ShouldAutoSize

public function view(): View
{
return view("export-views.asset_list", ["assets" => Asset::where("export",true), "show_actions" => false]);
return view("export-views.asset_list", ["assets" => Asset::where("export",true)->get()]);
}

public function styles(Worksheet $sheet)
Expand Down

0 comments on commit 5410c78

Please sign in to comment.