From 707b2c5e89c0f5f61d0fc518b6896afd639e7a67 Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Fri, 1 May 2020 14:15:26 +0200 Subject: [PATCH] PanelEditor: Only show cache timeout if enabled in data source plugin json (#24095) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * only show cache timeout if enabled in datasource * move conditional * Update public/app/features/dashboard/panel_editor/QueryOptions.tsx Co-authored-by: Torkel Ödegaard --- public/app/features/dashboard/panel_editor/QueryOptions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/panel_editor/QueryOptions.tsx b/public/app/features/dashboard/panel_editor/QueryOptions.tsx index 08442f64691..47e2fcf19f9 100644 --- a/public/app/features/dashboard/panel_editor/QueryOptions.tsx +++ b/public/app/features/dashboard/panel_editor/QueryOptions.tsx @@ -130,7 +130,7 @@ export class QueryOptions extends PureComponent { 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; }