Skip to content

Commit 202ebec

Browse files
committed
check for type
1 parent 7d01e08 commit 202ebec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ export const getFilteredAttributes = ( attributes, filter ) => {
599599
} )
600600

601601
Object.entries( blockAttrs ).forEach( ( [ key, value ] ) => {
602-
if ( 'default' in value ) {
602+
if ( value && typeof value === 'object' && 'default' in value ) {
603603
filteredAttributes[ key ] = value.default
604604
} else {
605605
filteredAttributes[ key ] = undefined

0 commit comments

Comments
 (0)