Skip to content

Commit

Permalink
Fix gallery upload
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jul 3, 2024
1 parent 5529d3f commit 9d37f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function GalleryEdit( props ) {
return (
ALLOWED_MEDIA_TYPES.some(
( mediaType ) => mediaTypeSelector?.indexOf( mediaType ) === 0
) || file.url?.indexOf( 'blob:' ) === 0
) || file.blob
);
}

Expand Down Expand Up @@ -272,7 +272,7 @@ function GalleryEdit( props ) {
.map( ( file ) => {
if ( ! file.url ) {
return {
blob: createBlobURL( file ),
blob: file.blob || createBlobURL( file ),
};
}

Expand Down

0 comments on commit 9d37f25

Please sign in to comment.