diff options
author | Sean Khan <datapronix@protonmail.com> | 2024-07-02 05:48:49 -0400 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-07-06 14:41:33 +0200 |
commit | 65f8c140e035a0355760b169dcff557b15b13a63 (patch) | |
tree | 8c4560fecdb273d0005706889eb6563c96ff0096 /applications/luci-app-dawn/htdocs/luci-static | |
parent | d3bf67507f480e248a234dd79e0f981d59a062b7 (diff) |
luci-app-dawn: Fix TypeError undef (reading '0')
Fixes error with hearing map showing:
```
Cannot read properties of undefined (reading '0')
```
Signed-off-by: Sean Khan <datapronix@protonmail.com>
Diffstat (limited to 'applications/luci-app-dawn/htdocs/luci-static')
-rw-r--r-- | applications/luci-app-dawn/htdocs/luci-static/resources/view/dawn/hearing_map.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-app-dawn/htdocs/luci-static/resources/view/dawn/hearing_map.js b/applications/luci-app-dawn/htdocs/luci-static/resources/view/dawn/hearing_map.js index 8b93fbfd6d..fdf840e4ba 100644 --- a/applications/luci-app-dawn/htdocs/luci-static/resources/view/dawn/hearing_map.js +++ b/applications/luci-app-dawn/htdocs/luci-static/resources/view/dawn/hearing_map.js @@ -90,9 +90,11 @@ return view.extend({ ap[1].score ] } + return undefined; }) }).flat(); + clients = clients.filter(client => client !== undefined); cbi_update_table(hearing_map_table, clients, E('em', _('No clients connected.'))); |