Skip to content

Commit e27a7ed

Browse files
committed
Hotfix for default order in lessons page
1 parent b1029fc commit e27a7ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/videos_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def results_by_database
7070
}.freeze
7171

7272
def database_order
73-
DATABASE_SORT_PARAMS[sort_params[:sort]] || {}
73+
DATABASE_SORT_PARAMS[@sort] || {}
7474
end
7575

7676
def find_video

0 commit comments

Comments
 (0)