Skip to content

Commit

Permalink
Fix padding input in global styles
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Mar 30, 2023
1 parent a636abc commit 4463e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/utils/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function normalizePath( path ) {
* @return {*} Cloned object, or original literal non-object value.
*/
function cloneObject( object ) {
if ( typeof object === 'object' ) {
if ( object && typeof object === 'object' ) {
return {
...Object.fromEntries(
Object.entries( object ).map( ( [ key, value ] ) => [
Expand Down

0 comments on commit 4463e22

Please sign in to comment.