File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export function SharedBlockConvertButton( {
52
52
53
53
export default compose ( [
54
54
withSelect ( ( select , { uid } ) => {
55
- const { getBlock, getSharedBlock } = select ( 'core/editor' ) ;
55
+ const { getBlock } = select ( 'core/editor' ) ;
56
56
const { getFallbackBlockName } = select ( 'core/blocks' ) ;
57
57
58
58
const block = getBlock ( uid ) ;
@@ -64,7 +64,7 @@ export default compose( [
64
64
// Hide 'Convert to Shared Block' on Classic blocks. Showing it causes a
65
65
// confusing UX, because of its similarity to the 'Convert to Blocks' button.
66
66
isVisible : block . name !== getFallbackBlockName ( ) ,
67
- isStaticBlock : ! isSharedBlock ( block ) || ! getSharedBlock ( block . attributes . ref ) ,
67
+ isStaticBlock : ! isSharedBlock ( block ) ,
68
68
} ;
69
69
} ) ,
70
70
withDispatch ( ( dispatch , { uid, onToggle = noop } ) => {
You can’t perform that action at this time.
0 commit comments