mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-02-17 02:19:51 +03:00
Merge branch 'master' into feature/qlog_file
This commit is contained in:
commit
34e1147de3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue