mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Update src/data/dhcp.ts
Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
This commit is contained in:
parent
57dca6f0d8
commit
bb5fd093de
@ -52,9 +52,9 @@ const subscribeDHCPDiscoveryUpdates = (
|
||||
}
|
||||
}
|
||||
if (event.remove) {
|
||||
for (const device_data of event.remove) {
|
||||
for (const deviceData of event.remove) {
|
||||
const index = data.findIndex(
|
||||
(d) => d.mac_address === device_data.mac_address
|
||||
(d) => d.mac_address === deviceData.mac_address
|
||||
);
|
||||
if (index !== -1) {
|
||||
data.splice(index, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user