@@ -193,7 +199,7 @@ const GraphView = forwardRef(({ graph, darkmode }: GraphViewProps, ref) => {
// Listen to the click event on nodes for showing node properties
cy.on('tap', 'node', handleTap);
-
+
// Listen to the click event on edges for showing edge properties
cy.on('tap', 'edge', handleTap);
}}
@@ -206,7 +212,7 @@ const GraphView = forwardRef(({ graph, darkmode }: GraphViewProps, ref) => {
{
selectedObject &&
-
From 68d0b6e4673b85a8250084c9d971d3e6eaf6ba56 Mon Sep 17 00:00:00 2001
From: Anchel123 <110421452+Anchel123@users.noreply.github.com>
Date: Wed, 10 Apr 2024 14:18:44 +0300
Subject: [PATCH 11/11] use join
---
app/graph/metadataview.tsx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/app/graph/metadataview.tsx b/app/graph/metadataview.tsx
index 23f21a64..697eae57 100644
--- a/app/graph/metadataview.tsx
+++ b/app/graph/metadataview.tsx
@@ -1,10 +1,7 @@
export default function MetaDataView({ metadata }: { metadata: string[] }) {
return (
- {
- // eslint-disable-next-line react/no-array-index-key
- metadata.map((val, index) => index === 0 ? val : ", ".concat(val) )
- }
+ {metadata.join(", ")}
)
}