mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PanelEditor: Only show cache timeout if enabled in data source plugin json (#24095)
* only show cache timeout if enabled in datasource * move conditional * Update public/app/features/dashboard/panel_editor/QueryOptions.tsx Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
parent
a00636b2ec
commit
707b2c5e89
@ -130,7 +130,7 @@ export class QueryOptions extends PureComponent<Props, State> {
|
||||
const tooltip = `If your time series store has a query cache this option can override the default cache timeout. Specify a
|
||||
numeric value in seconds.`;
|
||||
|
||||
if (!datasource.meta.queryOptions?.maxDataPoints) {
|
||||
if (!datasource.meta.queryOptions?.cacheTimeout) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user