Skip to content

Commit 7584c30

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 62f4b75 + 34b49ef commit 7584c30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Middleware/AssetCountForSidebar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function handle($request, Closure $next)
3636
try {
3737
$total_assets = Asset::count();
3838
if ($settings->show_archived_in_list != '1') {
39-
$total_assets -= Asset::Archived()->count();
39+
$total_assets = Asset::Archived()->count();
4040
}
4141
view()->share('total_assets', $total_assets);
4242
} catch (\Exception $e) {

0 commit comments

Comments
 (0)