Update src/data/dhcp.ts

Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
This commit is contained in:
J. Nick Koston 2025-04-17 08:25:29 -10:00 committed by GitHub
parent 57dca6f0d8
commit bb5fd093de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);