From d2c3c91fa7718d271febf68a3a5d2a07c9260872 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 13 Nov 2024 10:44:51 +0100 Subject: [PATCH] fix: hide sva decision before column --- app/models/procedure_presentation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/procedure_presentation.rb b/app/models/procedure_presentation.rb index 2df4db930..169bfe3ad 100644 --- a/app/models/procedure_presentation.rb +++ b/app/models/procedure_presentation.rb @@ -37,7 +37,7 @@ class ProcedurePresentation < ApplicationRecord *displayed_columns, procedure.dossier_state_column ] - columns.concat(procedure.sva_svr_columns) if procedure.sva_svr_enabled? + columns.concat(procedure.sva_svr_columns.filter(&:displayable)) if procedure.sva_svr_enabled? columns end end