Skip to content

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

fix: null-safe profiles/instances in dashboard JS

Mario850eea48988f
diff --git a/internal/dashboard/dashboard/profiles.js b/internal/dashboard/dashboard/profiles.js
index bf60068d..e1762bc3 100644
--- a/internal/dashboard/dashboard/profiles.js
+++ b/internal/dashboard/dashboard/profiles.js
@@ -57,11 +57,13 @@ async function loadProfiles() {
}
try {
- const [profiles, instances, health] = await Promise.all([
+ const [profilesRaw, instancesRaw, health] = await Promise.all([
fetchJSONOr('/profiles', []),
fetchJSONOr('/instances', []),
fetchJSONOr('/health', {})
]);
+ const profiles = Array.isArray(profilesRaw) ? profilesRaw : [];
+ const instances = Array.isArray(instancesRaw) ? instancesRaw : [];
let tabsData = { tabs: [] };
if (!health.mode) {
tabsData = await fetchJSONOr('/tabs', { tabs: [] });