Skip to content

Commit

Permalink
Image: Ensure false values are preserved in memory when defined in …
Browse files Browse the repository at this point in the history
…`theme.json` (#54639)

* Modify conditional when parsing config

* Only drop the value if it's undefined.

---------

Co-authored-by: Michal Czaplinski <[email protected]>
  • Loading branch information
2 people authored and mikachan committed Sep 29, 2023
1 parent 1271ebb commit 1ad31d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function useGlobalSetting( propertyPath, blockName, source = 'all' ) {
`settings${ appendedBlockPath }.${ setting }`
) ??
getValueFromObjectPath( configToUse, `settings.${ setting }` );
if ( value ) {
if ( value !== undefined ) {
result = setImmutably( result, setting.split( '.' ), value );
}
} );
Expand Down

0 comments on commit 1ad31d0

Please sign in to comment.