Builds Now Functional
This commit is contained in:
parent
fbb38a973a
commit
b26488c8bb
|
@ -19,7 +19,7 @@ export function SectionDescriptionBlockEdit( {
|
|||
const { content } = attributes;
|
||||
const blockProps = useWooBlockProps( attributes );
|
||||
|
||||
const rootClientId: string = useSelect(
|
||||
const rootClientId = useSelect(
|
||||
( select ) => {
|
||||
const { getBlockRootClientId } = select( 'core/block-editor' );
|
||||
return getBlockRootClientId( clientId );
|
||||
|
|
|
@ -17,7 +17,7 @@ export function BlockIcon( { clientId }: BlockIconProps ) {
|
|||
// Try to get the icon from the block's attributes
|
||||
const { getBlockAttributes, getBlockName } =
|
||||
select( 'core/block-editor' );
|
||||
const attributes: BlockAttributes = getBlockAttributes( clientId );
|
||||
const attributes = getBlockAttributes( clientId );
|
||||
if ( attributes?.icon ) {
|
||||
return attributes.icon;
|
||||
}
|
||||
|
|
502
pnpm-lock.yaml
502
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue