High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: add defensive array check in MonitoringPage
Bosch6d0eb776cb24
diff --git a/dashboard/src/pages/MonitoringPage.tsx b/dashboard/src/pages/MonitoringPage.tsxindex 96dc048a..d6adeda3 100644--- a/dashboard/src/pages/MonitoringPage.tsx+++ b/dashboard/src/pages/MonitoringPage.tsx@@ -40,9 +40,11 @@ export default function MonitoringPage() {runningInstances.map(async (inst) => {try {const tabs = await api.fetchInstanceTabs(inst.id)- dataPoint[inst.id] = tabs.length- tabsByInstance[inst.id] = tabs- } catch {+ const tabsArray = Array.isArray(tabs) ? tabs : []+ dataPoint[inst.id] = tabsArray.length+ tabsByInstance[inst.id] = tabsArray+ } catch (e) {+ console.error(`Failed to fetch tabs for ${inst.id}:`, e)dataPoint[inst.id] = 0tabsByInstance[inst.id] = []}