Fix block registration on notice-edit-single-variation
This commit is contained in:
parent
2981f14a5b
commit
23b2953934
|
@ -1,13 +1,9 @@
|
||||||
/**
|
|
||||||
* External dependencies
|
|
||||||
*/
|
|
||||||
import { registerWooBlockType } from '@woocommerce/block-templates';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
import blockConfiguration from './block.json';
|
import blockConfiguration from './block.json';
|
||||||
import { Edit } from './edit';
|
import { Edit } from './edit';
|
||||||
|
import { registerProductEditorBlockType } from '../../../utils';
|
||||||
|
|
||||||
const { name, ...metadata } = blockConfiguration;
|
const { name, ...metadata } = blockConfiguration;
|
||||||
|
|
||||||
|
@ -16,7 +12,7 @@ export { metadata, name };
|
||||||
export const settings = { example: {}, edit: Edit };
|
export const settings = { example: {}, edit: Edit };
|
||||||
|
|
||||||
export function init() {
|
export function init() {
|
||||||
return registerWooBlockType( {
|
return registerProductEditorBlockType( {
|
||||||
name,
|
name,
|
||||||
metadata: metadata as never,
|
metadata: metadata as never,
|
||||||
settings: settings as never,
|
settings: settings as never,
|
||||||
|
|
Loading…
Reference in New Issue