mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 09:33:34 -06:00
Prometheus: Place custom inputs first when using regex filter values in the query builder (#87360)
* fix: place custom inputs first when using regex filter values * fix: remove confusing messaging
This commit is contained in:
parent
7dd05998fd
commit
fae9bfccb2
@ -142,6 +142,8 @@ export function LabelFilterItem({
|
||||
: getSelectOptionsFromString(itemValue).map(toOption)[0]
|
||||
}
|
||||
allowCustomValue
|
||||
formatCreateLabel={(input) => input} // to avoid confusion, opt out of using the `defaultFormatCreateLabel`
|
||||
createOptionPosition={item.op?.includes('~') ? 'first' : 'last'}
|
||||
onOpenMenu={async () => {
|
||||
setState({ isLoadingLabelValues: true });
|
||||
const labelValues = await onGetLabelValues(item);
|
||||
|
Loading…
Reference in New Issue
Block a user