-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,7 +148,11 @@ export function getBlockAttributes( state, clientId ) { | |
* @return {Object} Parsed block object. | ||
*/ | ||
export function getBlock( state, clientId ) { | ||
return state.blocks.tree.get( clientId ) ?? null; | ||
if ( ! state.blocks.byClientId.has( clientId ) ) { | ||
return null; | ||
} | ||
|
||
return state.blocks.tree.get( clientId ); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ellatrix
Author
Member
|
||
} | ||
|
||
export const __unstableGetBlockWithoutInnerBlocks = createSelector( | ||
|
Why did you have to revert this?