0
0
Fork 0

feat: refs #7346 elimino ===

This commit is contained in:
Javi Gallego 2024-08-23 10:32:36 +02:00
parent defb11a6d7
commit d0ccce2656
1 changed files with 3 additions and 8 deletions

View File

@ -26,14 +26,9 @@ const clientsOptions = ref([]);
const serialTypesOptions = ref([]);
const handleInvoiceOutSerialsFetch = (data) => {
const uniqueTypes = new Set();
serialTypesOptions.value = data.filter((item) => {
if (item.type === null || uniqueTypes.has(item.type)) {
return false;
}
uniqueTypes.add(item.type);
return true;
});
serialTypesOptions.value = Array.from(
new Set(data.map((item) => item.type).filter((type) => type))
);
};
const formData = ref({});