File block retains href after uploading an unsupported file type causing block to encounter an error after page refresh #8155
Labels
[Block] File
Affects the File Block
[Feature] Blocks
Overall functionality of blocks
[Feature] Drag and Drop
Drag and drop functionality when working with blocks
[Type] Bug
An existing feature does not function as intended
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
file
variable is undefined. The call tomediaUpload
then results in an error:gutenberg/core-blocks/file/edit.js
Lines 58 to 68 in 7aacd2d
The text was updated successfully, but these errors were encountered: