-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix addons panel when using preact #3882
Conversation
Useful thanks! Do you think you could resolve the minor lint issue? |
Codecov Report
@@ Coverage Diff @@
## master #3882 +/- ##
==========================================
+ Coverage 41.44% 41.45% +0.01%
==========================================
Files 455 455
Lines 5193 5194 +1
Branches 903 904 +1
==========================================
+ Hits 2152 2153 +1
Misses 2496 2496
Partials 545 545
Continue to review full report at Codecov.
|
@ndelangen done 👍 |
Great work @sanpoChew! Thank you so much! |
@ndelangen please only add |
Issue:
Addons such as knobs were no longer rendering in the addon panel after installing the latest alpha, stemming from the changes in this merge request: #3628. This is due to children in preact always being an Array.
What I did
use Array.isArray to to check if content is an array, pull out the first value if it is.
How to test
Is this testable with Jest or Chromatic screenshots?
Nope.
Does this need a new example in the kitchen sink apps?
Nope.
Does this need an update to the documentation?
Nope.