fix error

This commit is contained in:
chiu 2021-09-09 14:33:10 +08:00
parent e0d2b5ec51
commit 12067be7f3
1 changed files with 1 additions and 1 deletions

View File

@ -6,6 +6,7 @@ class ArchivesController < ApplicationController
ArchiveSortOrder.new('sort_order' => false).save
end
params = OrbitHelper.params
@@total_pages = 1
if !params['title'].nil?
files_by_cateogry = ArchiveFile.where(is_hidden: false).group_by(&:category)
categories = files_by_cateogry.keys
@ -56,7 +57,6 @@ class ArchivesController < ApplicationController
}
end
end
@@total_pages = 1
else
if OrbitHelper.page_data_count > 0
OrbitHelper.set_page_data_count 0