summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/image/view.js
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/blocks/image/view.js')
-rw-r--r--wp-includes/blocks/image/view.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/wp-includes/blocks/image/view.js b/wp-includes/blocks/image/view.js
index 88b4815..62c1f50 100644
--- a/wp-includes/blocks/image/view.js
+++ b/wp-includes/blocks/image/view.js
@@ -197,7 +197,9 @@ const {
},
callbacks: {
setOverlayStyles() {
- if (!imageRef) return;
+ if (!imageRef) {
+ return;
+ }
let {
naturalWidth,
naturalHeight,