Skip to content

Commit

Permalink
Replace lodash function with JS function
Browse files Browse the repository at this point in the history
  • Loading branch information
lingyun1010 committed Nov 17, 2023
1 parent 198090b commit 4008b19
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ class TSnePlotViewRoute extends React.Component {
plotTypeDropdown={plotTypeDropdown}
selectedPlotOptionLabel={search.plotOption ?
search.plotType ?
Object.keys(_find(plotTypeDropdown,
(plot) => plot.plotType.toLowerCase() === search.plotType).plotOptions[0])[0] + `: ` + search.plotOption
Object.keys(plotTypeDropdown[plotTypeDropdown.findIndex(
(plot) => plot.plotType.toLowerCase() === search.plotType.toLowerCase())].plotOptions[0])[0] + `: ` + search.plotOption
:
Object.keys(_find(plotTypeDropdown,
(plot) => plot.plotType.toLowerCase() === this.state.selectedPlotType).plotOptions[0])[0] + `: ` + search.plotOption
Object.keys(plotTypeDropdown[plotTypeDropdown.findIndex(
(plot) => plot.plotType.toLowerCase() === this.state.selectedPlotType.toLowerCase())].plotOptions[0])[0] + `: ` + search.plotOption
:
this.state.selectedPlotOptionLabel}
onChangePlotTypes={
Expand Down

0 comments on commit 4008b19

Please sign in to comment.