Update electron/src/control/MinMaxValue.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
ChristianandCopilot committed 2025-11-23 17:58:07 +01:00
1 parent 8594b06c3b
commit 7a05fa206f
1 file changed
-16
-16
View File
@@ -88,22 +88,6 @@ export function MinMaxValue({
}
}
console.log("MinMaxValue Debug:", {
selectedTimeframe,
seriesType: selectedTimeframe <= 5000 ? "short" : "long",
validCount: series.validCount,
lastTimestamp: series.lastTimestamp,
cutoffTime,
dataCount,
min: hasValidData ? min : 0,
max: hasValidData ? max : 0,
currentValue: timeseries.current?.value,
sampleData: series.values
.slice(0, 5)
.filter((v): v is TimeSeriesValue => v !== null && v.timestamp > 0)
.map((v) => ({ value: v.value, timestamp: v.timestamp })),
});
if (!hasValidData) {
return { min: 0, max: 0, hasData: false };
}