Skip to content

Commit 028e887

Browse files
CopilotPDowney
andauthored
fix: pass getServiceDefinitions() to createAllServicesEnabledMap in buildAllServicesEnabledMap
Agent-Logs-Url: https://github.com/EngineScript/EngineScript/sessions/439610d5-824a-4207-8e5e-99786b5e0675 Co-authored-by: PDowney <[email protected]>
1 parent f057599 commit 028e887

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Changes are organized by date, with the most recent changes listed first.
66

77
## 2026-04-11
88

9+
### 🐛 BUG FIX: EXTERNAL SERVICES FALLBACK MAP
10+
11+
- Fixed `buildAllServicesEnabledMap()` in `external-services.js` to pass `this.getServiceDefinitions()` to `createAllServicesEnabledMap()`; the missing argument caused `Object.keys(undefined)``TypeError` in both API-failure fallback branches of `fetchAvailableServices()`, meaning the UI could never recover gracefully from a failed or empty config API response.
12+
913
### 🔧 CODE QUALITY: REMOVE UNREACHABLE CODE IN EXTERNAL SERVICES
1014

1115
- Removed unreachable dead code in `buildAllServicesEnabledMap()` in `external-services.js`; the five lines following `return this.createAllServicesEnabledMap()` (a stale `services` object build-up that also referenced an undefined `serviceDefinitions` variable) could never execute and have been deleted.

config/var/www/admin/control-panel/external-services/external-services.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export class ExternalServicesManager {
391391
* @returns {Object} Services object with every known key set to true
392392
*/
393393
buildAllServicesEnabledMap() {
394-
return this.createAllServicesEnabledMap();
394+
return this.createAllServicesEnabledMap(this.getServiceDefinitions());
395395
}
396396

397397
/**

0 commit comments

Comments
 (0)