Skip to content

Commit

Permalink
enabling select box
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Feb 4, 2021
1 parent ed89e4b commit b3362b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function TimeComparison() {
<EuiSelect
fullWidth={!isMedium && isLarge}
data-test-subj="comparisonSelect"
disabled={selectOptions.length <= 1}
disabled={!comparisonEnabled}
options={selectOptions}
value={comparisonType}
prepend={
Expand All @@ -140,7 +140,7 @@ export function TimeComparison() {
label={i18n.translate('xpack.apm.timeComparison.label', {
defaultMessage: 'Comparison',
})}
checked={comparisonEnabled && selectOptions.length > 0}
checked={comparisonEnabled}
onChange={() => {
urlHelpers.push(history, {
query: {
Expand Down

0 comments on commit b3362b4

Please sign in to comment.