summaryrefslogtreecommitdiff
path: root/pages/index.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-30 22:08:16 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-30 22:08:16 +0200
commit00fdc78a486e94ae6bdece1a4cd8ab8d3830b238 (patch)
tree2c9432afdc33e0176c81b3a35f4b97f087995acf /pages/index.tsx
parenta70faabfed22337b6585b58b7bb53f6544c12a1b (diff)
added extra check for wanting labels in 3d
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 ae3c048..3ecda92 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -708,6 +708,9 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
if (!physics.labels) {
return
}
+ if (physics.labels === 2) {
+ return
+ }
if (physics.labels === 1 && !highlightedNodes[node.id!]) {
return
}