Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix access to /rails/view_components preview

Christophe Bliardc67071284b4d
diff --git a/app/views/layouts/component_preview.html.erb b/app/views/layouts/component_preview.html.erb
index 82fc214be44..10d5bb64001 100644
--- a/app/views/layouts/component_preview.html.erb
+++ b/app/views/layouts/component_preview.html.erb
@@ -32,7 +32,7 @@ See COPYRIGHT and LICENSE files for more details.
</head>
<%
styles = []
- min_height = params[:lookbook][:display][:min_height]
+ min_height = params.dig('lookbook', 'display', 'min_height')
styles << "min-height: #{min_height}" if min_height.present?
%>