summaryrefslogtreecommitdiff
path: root/pages/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'pages/index.tsx')
-rw-r--r--pages/index.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/pages/index.tsx b/pages/index.tsx
index 8a9f39d..66dd30b 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -639,6 +639,9 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
window.open('org-protocol://roam-node?node=' + node.id, '_self')
return
}
+ if (scope.nodeIds.includes(node.id as string)) {
+ return
+ }
setScope((currentScope) => ({
...currentScope,
nodeIds: [...currentScope.nodeIds, node.id as string],