Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/modules/common/sonosController.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class SonosController {
};

// Search through all zone groups
const groups = jsonState?.ZoneGroups?.ZoneGroup || [];
const groups = [].concat(jsonState?.ZoneGroups?.ZoneGroup || []);
for (const group of groups) {
// Check main zone group member
const member = group.ZoneGroupMember;
Expand Down Expand Up @@ -155,7 +155,7 @@ export class SonosController {
};

// Process all zone groups
const groups = jsonState?.ZoneGroups?.ZoneGroup || [];
const groups = [].concat(jsonState?.ZoneGroups?.ZoneGroup || []);
for (const group of groups) {
// Handle zone group members
const members = group.ZoneGroupMember;
Expand Down