mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-27 22:29:31 +08:00
Dashboard: Fix charts skipping 0 values
Signed-off-by: Serhii Orlivskyi <serhii.orlivskyi@cedalo.com> (Cedalo GmbH)
This commit is contained in:
committed by
Roger Light
parent
32267766f1
commit
a03b30029d
@@ -1350,10 +1350,10 @@ class MosquittoDashboard {
|
||||
lastDataPoint,
|
||||
isUpdatingAllCharts,
|
||||
) {
|
||||
if (datapoint || isUpdatingAllCharts) {
|
||||
if (datapoint !== undefined || isUpdatingAllCharts) {
|
||||
this.updateChartInner(
|
||||
id,
|
||||
datapoint || lastDataPoint,
|
||||
datapoint !== undefined ? datapoint : lastDataPoint,
|
||||
timestampMilliseconds,
|
||||
dashboardDataObject,
|
||||
);
|
||||
@@ -1368,7 +1368,11 @@ class MosquittoDashboard {
|
||||
firstSubChartId,
|
||||
secondSubChartId,
|
||||
) {
|
||||
if (firstChartDatapoint || secondChartDatapoint || isUpdatingAllCharts) {
|
||||
if (
|
||||
firstChartDatapoint !== undefined ||
|
||||
secondChartDatapoint !== undefined ||
|
||||
isUpdatingAllCharts
|
||||
) {
|
||||
this.updateOverviewChartInner(id, firstSubChartId, secondSubChartId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user