Skip to content

Commit 9d76d51

Browse files
committed
remove default nil value for breadcrumbs
1 parent 382be26 commit 9d76d51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/primer/open_project/page_header.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class PageHeader < Primer::Component
184184
# In doubt, please check the PageHeader component documentation.
185185
# @param items [Array<String, Hash>] Items is an array of strings, hash {href, text} or an anchor tag string
186186
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
187-
renders_one :breadcrumbs, lambda { |items = nil, selected_item_font_weight: :bold, **system_arguments|
187+
renders_one :breadcrumbs, lambda { |items, selected_item_font_weight: :bold, **system_arguments|
188188
if items.nil?
189189
# No breadcrumbs → mark the PageHeader with a special class
190190
@system_arguments[:classes] = class_names(@system_arguments[:classes], "PageHeader--noBreadcrumb")

0 commit comments

Comments
 (0)