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:
Nick Richmond 2024-05-06 12:07:04 -04:00 committed by GitHub
parent 7dd05998fd
commit fae9bfccb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);