Embed: prevent 404 on graph links

This commit is contained in:
Liam Fitzgerald 2021-04-02 14:25:59 +10:00
parent 8325f232f3
commit 75baa3f97d
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -63,7 +63,7 @@ function GraphPermalink(
);
useEffect(() => {
(async () => {
if (pending) {
if (pending || !index) {
return;
}
try {
@ -87,7 +87,7 @@ function GraphPermalink(
borderRadius="2"
onClick={(e) => { e.stopPropagation(); }}
>
{showTransclusion && (
{showTransclusion && index && (
<Box p="2">
<TranscludedNode
api={api}