Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed May 11, 2024
2 parents c8fbf76 + 2decc3d commit 4642f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/AssetCountForSidebar.php
Expand Up @@ -35,7 +35,7 @@ public function handle($request, Closure $next)
}

try {
$total_assets = Asset::all()->count();
$total_assets = Asset::count();
if ($settings->show_archived_in_list != '1') {
$total_assets -= Asset::Archived()->count();
}
Expand Down

0 comments on commit 4642f50

Please sign in to comment.