mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 08:35:43 -06:00
Prometheus: Default cache value in UI doesn't match functional default (#67159)
* add disabled state style, set correct default value to match default functionality
This commit is contained in:
parent
c4c747cca6
commit
57d3027cb0
@ -357,7 +357,10 @@ export const PromSettings = (props: Props) => {
|
||||
className={`width-25`}
|
||||
onChange={onChangeHandler('cacheLevel', options, onOptionsChange)}
|
||||
options={cacheValueOptions}
|
||||
value={cacheValueOptions.find((o) => o.value === options.jsonData.cacheLevel)}
|
||||
disabled={options.readOnly}
|
||||
value={
|
||||
cacheValueOptions.find((o) => o.value === options.jsonData.cacheLevel) ?? PrometheusCacheLevel.Low
|
||||
}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user