feat: refs #7346 elimino ===
gitea/salix-front/pipeline/pr-dev This commit looks good Details

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 serialTypesOptions = ref([]);
const handleInvoiceOutSerialsFetch = (data) => { const handleInvoiceOutSerialsFetch = (data) => {
const uniqueTypes = new Set(); serialTypesOptions.value = Array.from(
serialTypesOptions.value = data.filter((item) => { new Set(data.map((item) => item.type).filter((type) => type))
if (item.type === null || uniqueTypes.has(item.type)) { );
return false;
}
uniqueTypes.add(item.type);
return true;
});
}; };
const formData = ref({}); const formData = ref({});