From e7659da0e73b318e809bcdd3004e0597e5372b47 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Wed, 17 Jun 2020 15:18:00 +0200 Subject: [PATCH] Fix tests --- app/controllers/repository_rows_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repository_rows_controller.rb b/app/controllers/repository_rows_controller.rb index 08dae49cc..b4025aee9 100644 --- a/app/controllers/repository_rows_controller.rb +++ b/app/controllers/repository_rows_controller.rb @@ -21,7 +21,7 @@ class RepositoryRowsController < ApplicationController @all_rows_count = datatable_service.all_count @columns_mappings = datatable_service.mappings @repository_rows = datatable_service.repository_rows - .where(archived: params[:archived]) + .where(archived: (params[:archived] || false)) .preload(:repository_columns, :created_by, repository_cells: @repository.cell_preload_includes)