Fix frontend console errors: disable WebSocket and add defensive array checks

- Disable Socket.IO connections in production to prevent connection errors
- Add Array.isArray() checks before calling filter() methods
- Fix TypeError: r.filter is not a function errors in Dashboard, Analytics, and Agents pages
- Ensure API responses are treated as arrays with fallback to empty arrays

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-07-14 22:21:26 +10:00
parent 3f3eec7f5d
commit 8a2e6b42dc
6 changed files with 86 additions and 80 deletions

View File

@@ -61,7 +61,7 @@
}
}
</style>
<script type="module" crossorigin src="/assets/index-BlnS7Et-.js"></script>
<script type="module" crossorigin src="/assets/index-S7T45P97.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CYSOVan7.css">
</head>
<body>