From b911f1df2987d8995bcb20c9608f89a876f07830 Mon Sep 17 00:00:00 2001 From: Ivan Kocienski Date: Thu, 26 Jan 2023 14:27:23 +0000 Subject: [PATCH] Bugfix: rendering proper component In Mossley site index page. Includes test thereof --- app/components/computer_access/_computer_access.html.erb | 2 +- app/controllers/sites_controller.rb | 2 +- app/views/sites/mossley.html.erb | 2 +- test/integration/sites_integration_test.rb | 7 +++++++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/components/computer_access/_computer_access.html.erb b/app/components/computer_access/_computer_access.html.erb index 48f515ae8..3e4fed7a7 100644 --- a/app/components/computer_access/_computer_access.html.erb +++ b/app/components/computer_access/_computer_access.html.erb @@ -17,7 +17,7 @@

Computer access

Places with computers you can use

- <% if places.any? %> + <% if places&.any? %>