Skip to content

Commit

Permalink
Remove extraneous references to value.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Mar 30, 2018
1 parent 4551dd6 commit e659118
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 17 deletions.
1 change: 0 additions & 1 deletion src-docs/src/views/combo_box/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default class extends Component {
}

const newOption = {
value: searchValue,
label: searchValue,
};

Expand Down
1 change: 0 additions & 1 deletion src-docs/src/views/combo_box/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export default class extends Component {
}

const newOption = {
value: searchValue,
label: searchValue,
};

Expand Down
13 changes: 1 addition & 12 deletions src-docs/src/views/combo_box/combo_box.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,25 @@ export default class extends Component {
super(props);

this.options = [{
value: 'titan',
label: 'Titan',
'data-test-subj': 'titanOption',
}, {
value: 'enceladus',
label: 'Enceladus',
}, {
value: 'mimas',
label: 'Mimas',
}, {
value: 'dione',
label: 'Dione',
}, {
value: 'iapetus',
label: 'Iapetus',
}, {
value: 'phoebe',
label: 'Phoebe',
}, {
value: 'rhea',
label: 'Rhea',
}, {
value: 'pandora',
label: 'Pandora is one of Saturn\'s moons, named for a Titaness of Greek mythology',
}, {
value: 'tethys',
label: 'Tethys',
}, {
value: 'hyperion',
label: 'Hyperion',
}];

Expand All @@ -60,13 +50,12 @@ export default class extends Component {
}

const newOption = {
value: searchValue,
label: searchValue,
};

// Create the option if it doesn't exist.
if (flattenedOptions.findIndex(option =>
option.value.trim().toLowerCase() === normalizedSearchValue
option.label.trim().toLowerCase() === normalizedSearchValue
) === -1) {
this.options.push(newOption);
}
Expand Down
1 change: 0 additions & 1 deletion src-docs/src/views/combo_box/containers.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export default class extends Component {
}

const newOption = {
value: searchValue,
label: searchValue,
};

Expand Down
1 change: 0 additions & 1 deletion src-docs/src/views/combo_box/custom_options_only.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default class extends Component {
}

const newOption = {
value: searchValue,
label: searchValue,
};

Expand Down
1 change: 0 additions & 1 deletion src-docs/src/views/combo_box/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export default class extends Component {
}

const newOption = {
value: searchValue,
label: searchValue,
};

Expand Down

0 comments on commit e659118

Please sign in to comment.