Skip to content

Commit d5edec3

Browse files
committed
maybe fix id links
1 parent b18ff53 commit d5edec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/article/render-article-block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import styles from './block.module.css';
88
export const renderBlock = (block: Block) => {
99
const { type, id } = block;
1010
const value = (block as any)[type];
11-
const formattedId = id && id.replaceAll ? id.replaceAll('-', '') : String(id);
11+
const formattedId = id.split('-').join('');
1212
switch (type) {
1313
case 'paragraph':
1414
return (

0 commit comments

Comments
 (0)