Automattic / liveblog

Liveblogging done right. Using WordPress.
https://wordpress.org/plugins/liveblog/
308 stars 122 forks source link

Image Uploader Fails If Asset Without Thumbnail Recently Uploaded #651

Closed jeffersonrabb closed 4 years ago

jeffersonrabb commented 4 years ago

Describe the bug If an asset without a thumbnail (e.g. a PDF) is among the media items displayed when Insert Image is clicked, the Liveblog interface breaks and can only be restored by reloading the page.

Originally reported on https://in-gl.de/2020/03/23/liveblog-corona-in-gl-23-3/.

To Reproduce Steps to reproduce the behavior:

  1. Navigate to Media Library and upload a PDF.
  2. View published Liveblog page.
  3. Click Insert Image.
  4. Observe Liveblog breakage, console log error similar to screenshot below.

Screenshots Video: https://cloudup.com/cLIynAS0wQv

Console log: Screen Shot 2020-03-23 at 4 24 06 PM

Expected behavior Image upload works normally.