We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07e98c5 commit a33325cCopy full SHA for a33325c
editor/store/effects.js
@@ -477,7 +477,8 @@ export default {
477
const state = store.getState();
478
const oldBlock = getBlock( state, action.uid );
479
const reusableBlock = getReusableBlock( state, oldBlock.attributes.ref );
480
- const newBlock = getBlock( state, reusableBlock.uid );
+ const referencedBlock = getBlock( state, reusableBlock.uid );
481
+ const newBlock = createBlock( referencedBlock.name, referencedBlock.attributes );
482
store.dispatch( replaceBlock( oldBlock.uid, newBlock ) );
483
},
484
CONVERT_BLOCK_TO_REUSABLE( action, store ) {
0 commit comments