Skip to content

Image Block: Add window to the optional chaining#40394

Merged
talldan merged 2 commits intoWordPress:trunkfrom
EliezerSPP:patch-2
Apr 19, 2022
Merged

Image Block: Add window to the optional chaining#40394
talldan merged 2 commits intoWordPress:trunkfrom
EliezerSPP:patch-2

Conversation

@EliezerSPP
Copy link
Copy Markdown
Contributor

What?

Add window to the optional chaining to avoid the error "wp is not defined" when its working outside a WordPress enviroment

@EliezerSPP EliezerSPP requested a review from ajitbohra as a code owner April 15, 2022 20:20
@talldan talldan added [Type] Bug An existing feature does not function as intended [Package] Block library /packages/block-library [Block] Image Affects the Image Block labels Apr 19, 2022
Copy link
Copy Markdown
Contributor

@talldan talldan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@talldan talldan merged commit fe054f7 into WordPress:trunk Apr 19, 2022
@github-actions github-actions bot added this to the Gutenberg 13.1 milestone Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Image Affects the Image Block [Package] Block library /packages/block-library [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants