Fix unadopted AP bug
This commit is contained in:
parent
014bfadf2d
commit
fa8be48175
|
@ -207,12 +207,12 @@ export async function getOnlineWifiDevices() {
|
|||
|
||||
export async function getAccessPoints() {
|
||||
try {
|
||||
const accessPoints = await unifiController.getAccessDevices('default')
|
||||
const [accessPoints] = await unifiController.getAccessDevices('default')
|
||||
|
||||
const restructuredAccessPoints = accessPoints[0].map(
|
||||
const restructuredAccessPoints = accessPoints.map(
|
||||
({ mac, model, ip, uptime, name, num_sta, bytes }) => ({
|
||||
mac,
|
||||
hostname: name,
|
||||
hostname: name || mac.replaceAll(':', ''),
|
||||
uptime: uptime ? +uptime : -1,
|
||||
controller: 'UniFi',
|
||||
model,
|
||||
|
|
Loading…
Reference in New Issue
Block a user