From d63beb90c51d43d73af8a52c2afaf49aed94c45b Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Wed, 14 Aug 2024 12:59:28 +0400 Subject: [PATCH] Fix attribute name for Video block --- packages/block-library/src/video/transforms.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/video/transforms.js b/packages/block-library/src/video/transforms.js index b15ae24a530d94..4325cd1e7e7e9d 100644 --- a/packages/block-library/src/video/transforms.js +++ b/packages/block-library/src/video/transforms.js @@ -92,9 +92,9 @@ const transforms = { poster: videoElement.getAttribute( 'poster' ) || undefined, src: videoElement.getAttribute( 'src' ) || undefined, }; - if ( isBlobURL( attributes.url ) ) { - attributes.blob = attributes.url; - delete attributes.url; + if ( isBlobURL( attributes.src ) ) { + attributes.blob = attributes.src; + delete attributes.src; } return createBlock( 'core/video', attributes ); },