Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix: chart requires at least 2 data points to render

Boscha80e681c953b
diff --git a/dashboard/src/components/molecules/TabsChart.tsx b/dashboard/src/components/molecules/TabsChart.tsx
index 5bd1733c..d7bfc268 100644
--- a/dashboard/src/components/molecules/TabsChart.tsx
+++ b/dashboard/src/components/molecules/TabsChart.tsx
@@ -100,11 +100,13 @@ export default function TabsChart({
});
}, [data, memoryData, serverData]);
- // Show empty state only if no data at all
- if (mergedData.length === 0) {
+ // Show empty state if no data or too few points to render meaningfully
+ if (mergedData.length < 2) {
return (
<div className="flex h-[200px] items-center justify-center rounded-lg border border-border-subtle bg-bg-surface text-sm text-text-muted">
- Collecting data...
+ {mergedData.length === 0
+ ? "Collecting data..."
+ : "Waiting for more data..."}
</div>
);
}