mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 13:45:44 +08:00
FIX bug
This commit is contained in:
@@ -17,7 +17,7 @@ class ProjectsController < ApplicationController
|
|||||||
@total_count =
|
@total_count =
|
||||||
if category_id.blank?
|
if category_id.blank?
|
||||||
ps = ProjectStatistic.first
|
ps = ProjectStatistic.first
|
||||||
ps.common_projects_count + ps.mirror_projects_count
|
ps.common_projects_count + ps.mirror_projects_count unless ps.blank?
|
||||||
else
|
else
|
||||||
cate = ProjectCategory.find_by(id: category_id)
|
cate = ProjectCategory.find_by(id: category_id)
|
||||||
cate&.projects_count || 0
|
cate&.projects_count || 0
|
||||||
|
|||||||
Reference in New Issue
Block a user