Skip to content

Commit

Permalink
Check undefined instead of !
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Jul 5, 2024
1 parent 0d5644f commit 473b5aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor/src/bindings/pattern-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export default {
]?.[ attributeName ];

// If it has not been overriden, return the original value.
if ( ! overridableValue ) {
// Check undefined because empty string is a valid value.
if ( overridableValue === undefined ) {
overridesValues[ attributeName ] =
currentBlockAttributes[ attributeName ];
continue;
Expand Down

0 comments on commit 473b5aa

Please sign in to comment.