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:
Peter Holmberg 2020-05-01 14:15:26 +02:00 committed by GitHub
parent a00636b2ec
commit 707b2c5e89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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