Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional chain to sizes indexing of media details in edit-site (W…
…ordPress#68995) This optional chaining is already present in 21 other lines in Gutenberg where `sizes` (in `media_details`) is indexed, but is missing on these two lines. For some reason, `media_details` is an empty object for some of my attachments on my site, so this throws a TypeError. This change resolves this issue. Co-authored-by: grgar <grgarside@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
- Loading branch information