From 498a443230431b2a44cc1e623b3ff76bff8a22ac Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 11 Jul 2024 12:01:06 +0100 Subject: [PATCH] Derp Signed-off-by: snipe --- app/Http/Middleware/AssetCountForSidebar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {