Skip to content

Commit

Permalink
handle empty component config
Browse files Browse the repository at this point in the history
  • Loading branch information
emiltin committed Dec 12, 2024
1 parent 90effab commit 299644f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rsmp/components.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def setup_components settings
settings.each_pair do |type,components_by_type|
if components_by_type
components_by_type.each_pair do |id,component_settings|
component_settings ||= {}
@components[id] = build_component(id:id, type:type, settings:component_settings)
@main = @components[id] if type=='main'
end
Expand Down

0 comments on commit 299644f

Please sign in to comment.