Skip to content

Commit 8555609

Browse files
committed
fix cleanSerializedBlock
1 parent 142f259 commit 8555609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/design-library-list/use-preview-renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export const usePreviewRenderer = (
170170

171171
preview = replaceImages( preview )
172172

173-
const cleanedBlock = cleanSerializedBlock( /<!--[\s\S]*?-->/g, '' ) // removes comment
173+
const cleanedBlock = cleanSerializedBlock( preview ) // removes comment
174174

175175
setBlocks( {
176176
parsed: parsedBlocks,

0 commit comments

Comments
 (0)