Skip to content

Commit

Permalink
Fix condition for including polymorphic slots module (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron authored Feb 21, 2023
1 parent ad56dde commit 498191b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shaggy-apes-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/view-components': patch
---

Fix conditional inclusion of polymorphic slots module
2 changes: 1 addition & 1 deletion app/components/primer/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Component < ViewComponent::Base
end

if Module.const_defined?("ViewComponent::PolymorphicSlots") &&
ViewComponent::Base < ViewComponent::PolymorphicSlots
!(ViewComponent::Base < ViewComponent::PolymorphicSlots)
include ViewComponent::PolymorphicSlots
end

Expand Down

0 comments on commit 498191b

Please sign in to comment.