Skip to content

Commit

Permalink
formatting and remove choice_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-fxpig committed May 26, 2020
1 parent 0151299 commit 41f4847
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/controls/choose-dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ class ChooseDataset extends React.Component {
const options = displayedDataset.map((_, i) =>
Array.from(
new Set(
this.props.available.datasets.filter((ds) =>
checkEqualityOfArrays(ds.request.split("/"), displayedDataset, i)
).map((ds) => ds.request.split("/")[i]))
this.props.available.datasets
.filter((ds) => checkEqualityOfArrays(ds.request.split("/"), displayedDataset, i))
.map((ds) => ds.request.split("/")[i])
)
).map((opt) => ({
value: displayedDataset.slice(0, i).concat(opt).join("/"),
label: opt
Expand All @@ -58,7 +59,6 @@ class ChooseDataset extends React.Component {
<ChooseDatasetSelect
key={displayedDataset[optionIdx]}
dispatch={this.props.dispatch}
choice_tree={displayedDataset.slice(0, optionIdx)}
selected={displayedDataset.slice(0, optionIdx + 1).join("/")}
options={option}
/>
Expand Down

0 comments on commit 41f4847

Please sign in to comment.