Skip to content

Commit

Permalink
Audio: Avoid error when locked (#38282)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Feb 1, 2022
1 parent 2db3a71 commit e4913fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/audio/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function AudioEdit( {
const embedBlock = createUpgradedEmbedBlock( {
attributes: { url: newSrc },
} );
if ( undefined !== embedBlock ) {
if ( undefined !== embedBlock && onReplace ) {
onReplace( embedBlock );
return;
}
Expand Down

0 comments on commit e4913fe

Please sign in to comment.