Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: stabilize activeMetricKeys from category.metrics and availableMetrics

[._.]/ Adam Eivyc10ad6e732f3
diff --git a/client/src/components/meatspace/HealthCategorySection.jsx b/client/src/components/meatspace/HealthCategorySection.jsx
index 079613de03..5e5afa2118 100644
--- a/client/src/components/meatspace/HealthCategorySection.jsx
+++ b/client/src/components/meatspace/HealthCategorySection.jsx
@@ -11,10 +11,13 @@ export default function HealthCategorySection({ category, from, to, expanded, on
const lastRangeRef = useRef(null);
// Filter to only metrics that have data — stabilize the key list for deps
- const activeMetrics = category.metrics.filter(m => availableMetrics.has(m.key));
const activeMetricKeys = useMemo(
- () => activeMetrics.map(m => m.key).join(','),
- [activeMetrics]
+ () => category.metrics.filter(m => availableMetrics.has(m.key)).map(m => m.key).join(','),
+ [category.metrics, availableMetrics]
+ );
+ const activeMetrics = useMemo(
+ () => category.metrics.filter(m => availableMetrics.has(m.key)),
+ [category.metrics, availableMetrics]
);
const rangeKey = `${from}|${to}`;