Skip to content

Commit

Permalink
Don't export ReusableBlockDeleteButton twice
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Oct 13, 2020
1 parent f255483 commit d5ac446
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,9 @@ export const __experimentalGetParsedReusableBlock = createSelector(
return null;
}

return parse( reusableBlock.content.raw );
// Only reusableBlock.content.raw should be used here, `reusableBlock.content` is a
// workaround until #22127 is fixed.
return parse( reusableBlock.content.raw || reusableBlock.content );
},
( state ) => [ getReusableBlocks( state ) ]
);
Expand Down

0 comments on commit d5ac446

Please sign in to comment.