Skip to content

Commit

Permalink
adding brackets to resolve lint error
Browse files Browse the repository at this point in the history
14/04/2021 10:55:26[INFO] /home/developer/workspace/org.geppetto.frontend/src/main/webapp/components/interface/VFBCircuitBrowser/Controls.js
14/04/2021 10:55:26[INFO]   275:36  error  Unexpected parentheses around single function argument  arrow-parens
  • Loading branch information
Robbie1977 committed Apr 14, 2021
1 parent 8745ab5 commit b539192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/interface/VFBCircuitBrowser/Controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class Controls extends Component {
// Copy neurons and add selection to correct array index
let neurons = this.state.neuronFields;
let shortForm = this.state.filteredResults?.[value].short_form;
let index = neurons.findIndex((neuron) => neuron.id === shortForm);
let index = neurons.findIndex((neuron) => (neuron.id === shortForm));
index > -1 ? neurons[index] = { id : shortForm, label : value } : null

// Keep track of query selected, and send an event to redux store that circuit has been updated
Expand Down

0 comments on commit b539192

Please sign in to comment.