Skip to content

Commit a615723

Browse files
committed
remove extra type casting
1 parent 63e9b8d commit a615723

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

static/app/views/explore/metrics/metricToolbar/aggregateDropdown.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,22 @@ export function AggregateDropdown({traceMetric}: {traceMetric: TraceMetric}) {
9696
return (
9797
<CompositeSelect.Region
9898
key={groupKey}
99-
label={group.label as string}
99+
label={group.label}
100100
multiple
101101
options={group.options}
102102
value={activeValues}
103-
onChange={(opts: Array<SelectOption<string>>) => handleChange(opts)}
103+
onChange={handleChange}
104104
/>
105105
);
106106
}
107107

108108
return (
109109
<CompositeSelect.Region
110110
key={groupKey}
111-
label={group.label as string}
111+
label={group.label}
112112
options={group.options}
113-
value={activeValues[0] as string}
114-
onChange={(opt: SelectOption<string>) => handleChange([opt])}
113+
value={activeValues[0]}
114+
onChange={opt => handleChange([opt])}
115115
/>
116116
);
117117
})}

0 commit comments

Comments
 (0)