Skip to content

Commit

Permalink
Fix issue where mapping cypher result to vis would break the app
Browse files Browse the repository at this point in the history
  • Loading branch information
pe4cey committed Nov 16, 2017
1 parent e212ff1 commit 5d234c5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/browser/modules/D3Visualization/components/Explorer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ export class ExplorerComponent extends Component {
let selectedItem = ''
if (nodes.length > parseInt(this.props.initialNodeDisplay)) {
nodes = nodes.slice(0, this.props.initialNodeDisplay)
relationships = this.props.relationships.filter(
item =>
nodes.filter(node => node.id === item.startNodeId).length > 0 &&
this.state.nodes.filter(node => node.id === item.endNodeId).length > 0
)
relationships = this.props.relationships.filter(item => {
nodes.filter(node => node.id === item.startNodeId).length > 0
return false
})
selectedItem = {
type: 'status-item',
item: `Not all return nodes are being displayed due to Initial Node Display setting. Only ${this
Expand Down

0 comments on commit 5d234c5

Please sign in to comment.