Skip to content

Commit 9b70e68

Browse files
committed
fix: don't show block link when uuid is null.
1 parent 1c48c20 commit 9b70e68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/LogseqBlock.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ export const LogseqBlock = ({
2121
dangerouslySetInnerHTML={{ __html: block.html }}
2222
></div>
2323
<span className={styles.blockFooter}>
24-
<a
24+
{block.uuid && <a
2525
className={styles.toBlock}
2626
href={`logseq://graph/${graph}?block-id=${block.uuid}`}
2727
>
2828
<span className={'tie tie-block'}></span>
2929
To block
30-
</a>
30+
</a>}
3131
<LogseqPageLink
3232
graph={graph}
3333
page={block.page}

0 commit comments

Comments
 (0)