Skip to content

Commit

Permalink
Restore hook
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jul 3, 2024
1 parent 473914c commit 5529d3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/block-library/src/utils/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ export function useUploadMediaFromBlobURL( args = {} ) {
if ( hasUploadStarted.current ) {
return;
}

if ( ! latestArgs.current.url ) {
if (
! latestArgs.current.url ||
! isBlobURL( latestArgs.current.url )
) {
return;
}

Expand Down

0 comments on commit 5529d3f

Please sign in to comment.