diff --git a/portal/portal.js b/portal/portal.js index 63bdb9e..468ffd3 100644 --- a/portal/portal.js +++ b/portal/portal.js @@ -1680,8 +1680,8 @@ const Portal = {
${this.escapeHtml(sp.Name)}
- - + +
`).join(''); @@ -1945,7 +1945,7 @@ const Portal = { const assignedSPIds = new Set(this.assignments.map(a => a.ServicePointID)); const availableBeacons = this.beacons.filter(b => b.IsActive && !assignedBeaconIds.has(b.BeaconID)); - const availableSPs = this.servicePoints.filter(sp => !assignedSPIds.has(sp.ID)); + const availableSPs = this.servicePoints.filter(sp => !assignedSPIds.has(sp.ServicePointID)); if (availableBeacons.length === 0) { this.toast('No unassigned beacons available', 'warning'); @@ -1970,7 +1970,7 @@ const Portal = {