From 8508ad79b227eeb92dc422e2d2a884b736507423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Farkas?= Date: Mon, 29 Nov 2021 11:49:53 +0100 Subject: [PATCH] Dashboard: Fix queries for panels with non-integer widths (#42420) * dashboard: fix non-integer panel widths * switched to better supported function --- public/app/features/dashboard/state/PanelModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/state/PanelModel.ts b/public/app/features/dashboard/state/PanelModel.ts index 8202b03286e..7bfc7c72a7d 100644 --- a/public/app/features/dashboard/state/PanelModel.ts +++ b/public/app/features/dashboard/state/PanelModel.ts @@ -313,7 +313,7 @@ export class PanelModel implements DataConfigSource, IPanelModel { timezone: dashboardTimezone, timeRange: timeData.timeRange, timeInfo: timeData.timeInfo, - maxDataPoints: this.maxDataPoints || width, + maxDataPoints: this.maxDataPoints || Math.floor(width), minInterval: this.interval, scopedVars: this.scopedVars, cacheTimeout: this.cacheTimeout,