Skip to content

Commit

Permalink
chore: post-rebase cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine committed Dec 25, 2024
1 parent be4fbef commit a2fd593
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/Type/InterfaceType/EditorBlockInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

use WPGraphQL\ContentBlocks\Data\ContentBlocksResolver;
use WP_Block_Type_Registry;
use WPGraphQL\ContentBlocks\Utilities\WPGraphQLHelpers;

/**
* Class EditorBlockInterface
Expand Down Expand Up @@ -117,7 +116,7 @@ public static function register_type(): void {
'type' => 'String',
'description' => __( 'The (GraphQL) type of the block', 'wp-graphql-content-blocks' ),
'resolve' => static function ( $block ) {
return WPGraphQLHelpers::get_type_name_for_block( $block['blockName'] ?? null );
return $block->type;
},
],
],
Expand Down

0 comments on commit a2fd593

Please sign in to comment.