You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is caused by the file block retaining the 'href' attribute for a blob that no longer exists after previously encountering an error. When mounting after the page reload the file variable is undefined. The call to mediaUpload then results in an error:
Describe the bug
Refreshing the page after a File Block after an invalid file type has been added results in a block in an erroneous state
Related to umbrella issue #8119, since this happens when the file block edit componentDidMount and triggers particular transitions in state.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The file block should still be displayed and should probably not display any kind of error.
Screenshots

Desktop (please complete the following information):
Additional context
filevariable is undefined. The call tomediaUploadthen results in an error:gutenberg/core-blocks/file/edit.js
Lines 58 to 68 in 7aacd2d