Skip to content

Gallery block: Image size select doesn't load if no image ids #36554

@glendaviesnz

Description

@glendaviesnz

Description

If a gallery consists only of external images, which have no WordPress id, then the Image size select in the settings panel gets stuck on loading.

Step-by-step reproduction instructions

  • Add a v2 Gallery block (use Gutenberg > 11.9) with a couple of images
  • Replace the images using the 'Replace' button in the block toolbar and enter an external image url
  • Notice that the Image size selector gets stuck on loading

Screenshots, screen recording, code snippet

Screen Shot 2021-11-17 at 3 42 53 PM

Environment info

Gutenberg > 11.9

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

Labels

[Block] GalleryAffects the Gallery Block - used to display groups of images[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions