Skip to content

Commit a55adca

Browse files
committed
Add missing async
1 parent e6393c8 commit a55adca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/blocks.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* WordPress dependencies
33
*/
4-
import { unregisterBlockType } from '@wordpress/blocks';
4+
import { unregisterBlockType, getBlockTypes } from '@wordpress/blocks';
55
import { renderToString } from '@wordpress/element';
66
import { debug } from './logger';
77

@@ -74,7 +74,6 @@ function getBlockIcon( blockType ) {
7474
* @return {Array} Array of serialized block objects.
7575
*/
7676
export function getSerializedBlocks() {
77-
const { getBlockTypes } = await import( '@wordpress/blocks' );
7877
return getBlockTypes().map( ( blockType ) => {
7978
return {
8079
name: blockType.name,

0 commit comments

Comments
 (0)