Commit 707b2c5e by Peter Holmberg Committed by GitHub

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>
parent a00636b2
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment