From fce8e3433a3b89d0611415417889df9e2f523a3c Mon Sep 17 00:00:00 2001 From: Kevin De Pelseneer Date: Mon, 3 Jun 2024 16:33:16 +0200 Subject: [PATCH] Pass errors to partials --- app/views/single_pages/sample_upload_content.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/single_pages/sample_upload_content.html.erb b/app/views/single_pages/sample_upload_content.html.erb index 139062d970..b8b1f51dc2 100644 --- a/app/views/single_pages/sample_upload_content.html.erb +++ b/app/views/single_pages/sample_upload_content.html.erb @@ -9,7 +9,7 @@
<%# General information panel %> - <%= render partial: 'general_panel' %> + <%= render partial: 'general_panel', locals: {errors: } %> <%# New Samples panel %> <%= render partial: 'new_samples_panel' %> @@ -21,7 +21,7 @@ <%= render partial: 'duplicate_samples_panel' %> <%# Panel for Sample with wrong permissions %> - <%= render partial: 'unauthorized_samples_panel' %> + <%= render partial: 'unauthorized_samples_panel', locals: {errors: } %>
<% unless @can_upload %>