mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
Embed: prevent 404 on graph links
This commit is contained in:
parent
8325f232f3
commit
75baa3f97d
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user