diff --git a/packages/block-editor/src/utils/object.js b/packages/block-editor/src/utils/object.js index 5c6afbc7ba4ff..5fe357e5e9f61 100644 --- a/packages/block-editor/src/utils/object.js +++ b/packages/block-editor/src/utils/object.js @@ -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 ] ) => [