Skip to content

Commit

Permalink
luci-app-dawn: Fix TypeError undef (reading '0')
Browse files Browse the repository at this point in the history
Fixes error with hearing map showing:

```
Cannot read properties of undefined (reading '0')
```

Signed-off-by: Sean Khan <[email protected]>
  • Loading branch information
qosmio authored and systemcrash committed Jul 6, 2024
1 parent d3bf675 commit 65f8c14
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.')));

Expand Down

0 comments on commit 65f8c14

Please sign in to comment.