Skip to content

Commit 08333d3

Browse files
committed
Explain why dispatching RECEIVE_BLOCKS is necessary
1 parent f4eb391 commit 08333d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

editor/store/effects.js

+1
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ export default {
505505
} )
506506
) );
507507

508+
// Re-add the original block to the store, since replaceBlock() will have removed it
508509
dispatch( receiveBlocks( [ parsedBlock ] ) );
509510
},
510511
CREATE_NOTICE( { notice: { content, spokenMessage } } ) {

0 commit comments

Comments
 (0)