We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b18ff53 commit d5edec3Copy full SHA for d5edec3
components/article/render-article-block.tsx
@@ -8,7 +8,7 @@ import styles from './block.module.css';
8
export const renderBlock = (block: Block) => {
9
const { type, id } = block;
10
const value = (block as any)[type];
11
- const formattedId = id && id.replaceAll ? id.replaceAll('-', '') : String(id);
+ const formattedId = id.split('-').join('');
12
switch (type) {
13
case 'paragraph':
14
return (
0 commit comments