Fix critical bugs in ObjectUtil.equals() and filterInbounds()
This commit is contained in:
parent
a574638cad
commit
e59ffa29e9
@ -994,11 +994,13 @@
|
|||||||
const list = this.clientCount[inbound.id][this.filterBy];
|
const list = this.clientCount[inbound.id][this.filterBy];
|
||||||
if (list.length > 0) {
|
if (list.length > 0) {
|
||||||
const filteredSettings = { "clients": [] };
|
const filteredSettings = { "clients": [] };
|
||||||
inboundSettings.clients.forEach(client => {
|
if (inboundSettings.clients) {
|
||||||
if (list.includes(client.email)) {
|
inboundSettings.clients.forEach(client => {
|
||||||
filteredSettings.clients.push(client);
|
if (list.includes(client.email)) {
|
||||||
}
|
filteredSettings.clients.push(client);
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
newInbound.settings = Inbound.Settings.fromJson(inbound.protocol, filteredSettings);
|
newInbound.settings = Inbound.Settings.fromJson(inbound.protocol, filteredSettings);
|
||||||
this.searchedInbounds.push(newInbound);
|
this.searchedInbounds.push(newInbound);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user