mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 11:22:49 +03:00
Merge: - client: fix empty disallowed_clients
* commit 'd8f8e6b94a9461c56554c33fe861cb46f4b3f954': - client: empty disallowed_clients
This commit is contained in:
commit
9a81451586
@ -55,7 +55,7 @@ export const toggleClientBlock = (type, ip) => async (dispatch) => {
|
||||
const {
|
||||
allowed_clients, disallowed_clients, blocked_hosts,
|
||||
} = await apiClient.getAccessList();
|
||||
let updatedDisallowedClients = disallowed_clients;
|
||||
let updatedDisallowedClients = disallowed_clients || [];
|
||||
|
||||
if (type === ACTION.unblock && updatedDisallowedClients.includes(ip)) {
|
||||
updatedDisallowedClients = updatedDisallowedClients.filter(client => client !== ip);
|
||||
|
Loading…
Reference in New Issue
Block a user