if (ids.length > 0 && !item.name) {
state.push(false);
} else if (ids.length > 0) {
const filterName = ids.find((name) => name === item.name);
if (filterName) {
this.isFilters = false;
state.push(filterName != null);
} else {
state.push(false);
}
}
if (types.length > 0) {
if (!item.surname) {
state.push(false);
} else {
const filter = types.find((type) => type === item.surname);
if (filter) {
this.isFilters = false;
state.push(filter != null);
} else {
state.push(false);
}
}
}
if (ids.length > 0) {
const filterName = ids.find((name) => name === item.name);
if (!item.name) {
state.push(false);
return;
}
if (filterName) {
this.isFilters = false;
state.push(filterName != null);
return;
}
state.push(false);
}
if (types.length > 0) {
const filter = types.find((type) => type === item.surname);
if (!item.surname) {
state.push(false);
return;
}
if (filter) {
this.isFilters = false;
state.push(filter != null);
return;
}
state.push(false);
}