From 2f939a7f9047ed9b632ac4fb0d593d0cf9588ce9 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Wed, 11 Sep 2024 12:44:22 +0900 Subject: [PATCH] Fix image block crash (#65222) Co-authored-by: t-hamano Co-authored-by: kevin940726 Co-authored-by: ramonjd --- packages/block-library/src/image/edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/src/image/edit.js b/packages/block-library/src/image/edit.js index 16ec296554d74..d44dc73abfd85 100644 --- a/packages/block-library/src/image/edit.js +++ b/packages/block-library/src/image/edit.js @@ -23,6 +23,7 @@ import { useEffect, useRef, useState } from '@wordpress/element'; import { __, sprintf } from '@wordpress/i18n'; import { image as icon, plugins as pluginsIcon } from '@wordpress/icons'; import { store as noticesStore } from '@wordpress/notices'; +import { useResizeObserver } from '@wordpress/compose'; /** * Internal dependencies