Skip to content

Commit

Permalink
run format
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanak-michal committed Nov 7, 2024
1 parent 97bebc3 commit a068d0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/page/query/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,13 @@ class Graph extends React.Component<IGraphProps, IGraphState> {
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] || []
}
/>
)}
Expand All @@ -448,13 +448,13 @@ class Graph extends React.Component<IGraphProps, IGraphState> {
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] || []
}
/>
)}
Expand Down

0 comments on commit a068d0a

Please sign in to comment.