From a068d0ae795bd6e3df772847a01035c6b41f183d Mon Sep 17 00:00:00 2001 From: Michal Stefanak Date: Thu, 7 Nov 2024 07:35:25 +0100 Subject: [PATCH] run format --- src/page/query/Graph.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/page/query/Graph.tsx b/src/page/query/Graph.tsx index 019b816..89c34fc 100644 --- a/src/page/query/Graph.tsx +++ b/src/page/query/Graph.tsx @@ -430,13 +430,13 @@ class Graph extends React.Component { handleClose={() => this.setState({ nodeStyleModal: null })} handleStyleSet={this.updateNodeStyle} labelFields={ - (this.props.rows.map(record => { + this.props.rows.map(record => { for (const key of record.keys) { const item = record.get(key); if (item instanceof _Node && item.labels[0] === this.state.nodeStyleModal) return Object.keys(item.properties); } - })[0] || []) + })[0] || [] } /> )} @@ -448,13 +448,13 @@ class Graph extends React.Component { handleClose={() => this.setState({ edgeStyleModal: null })} handleStyleSet={this.updateEdgeStyle} labelFields={ - (this.props.rows.map(record => { + this.props.rows.map(record => { for (const key of record.keys) { const item = record.get(key); if (item instanceof _Relationship && item.type === this.state.edgeStyleModal) return Object.keys(item.properties); } - })[0] || []) + })[0] || [] } /> )}