diff --git a/app/Http/Middleware/AssetCountForSidebar.php b/app/Http/Middleware/AssetCountForSidebar.php index 92c8152ef4..636c04713d 100644 --- a/app/Http/Middleware/AssetCountForSidebar.php +++ b/app/Http/Middleware/AssetCountForSidebar.php @@ -36,7 +36,7 @@ class AssetCountForSidebar try { $total_assets = Asset::count(); if ($settings->show_archived_in_list != '1') { - $total_assets = Asset::Archived()->count(); + $total_assets -= Asset::Archived()->count(); } view()->share('total_assets', $total_assets); } catch (\Exception $e) {