-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 duotone padding crash #31780
Fix duotone padding crash #31780
Conversation
Size Change: -5 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works as expected.
@ajlende I updated my comment. It all works now. I missed a step when setting up my PR testing suite. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good. Thank you.
The PR works well for me. |
Description
Fixes #31766
Some of the other block supports filter out falsy values from the entirety of the
style
object. However, lodash'spickBy
function will convert an Array into an Object, causing thecolor.forEach
to beundefined
when duotone is processing the colors.This change makes sure that Arrays are not affected by the filtering which fixes the issue.
How has this been tested?
Screenshots
Types of changes
Bug fix
Checklist:
*.native.js
files for terms that need renaming or removal).