diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-image-gallery/edit.tsx b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-image-gallery/edit.tsx index b4f50c9ca6a..d4c8cf72db9 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-image-gallery/edit.tsx +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-image-gallery/edit.tsx @@ -2,11 +2,8 @@ * External dependencies */ import { WC_BLOCKS_IMAGE_URL } from '@woocommerce/block-settings'; -import { isEmptyObject } from '@woocommerce/types'; import { useBlockProps } from '@wordpress/block-editor'; -import { BlockAttributes } from '@wordpress/blocks'; import { Disabled } from '@wordpress/components'; -import type { BlockEditProps } from '@wordpress/blocks'; /** * Internal dependencies @@ -35,30 +32,16 @@ const Placeholder = () => { ); }; -type Context = { - postId: string; - postType: string; - queryId: string; -}; - -interface Props extends BlockEditProps< BlockAttributes > { - context: Context; -} - -const Edit = ( { context }: Props ) => { +const Edit = () => { const blockProps = useBlockProps(); - if ( isEmptyObject( context ) ) { - return ( -
- - - -
- ); - } - // We have work on this case when we will work on the Single Product block. - return <>; + return ( +
+ + + +
+ ); }; export default Edit; diff --git a/plugins/woocommerce/readme.txt b/plugins/woocommerce/readme.txt index 2de0fb68e14..5baa073b463 100644 --- a/plugins/woocommerce/readme.txt +++ b/plugins/woocommerce/readme.txt @@ -173,6 +173,7 @@ WooCommerce comes with some sample data you can use to see how products look; im **WooCommerce** +* Fix - Product Image Gallery: Render placeholder in Editor in WordPress 6.7 [#52432](https://github.com/woocommerce/woocommerce/pull/52432) * Fix - Support situations in which (WooCommerce) translations are inadvertently loaded too early. [#52199](https://github.com/woocommerce/woocommerce/pull/52199) * Fix - Add a retry mechanism to the query to obtain the SKU lock for product creation through the API. [#51735](https://github.com/woocommerce/woocommerce/pull/51735) * Fix - Fix `Error: Failed opening required '.../wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/AI/ProductsSchema.php` fatal error [#51912](https://github.com/woocommerce/woocommerce/pull/51912)