forked from verdnatura/salix-front
feat: refs #7346 elimino ===
This commit is contained in:
parent
defb11a6d7
commit
d0ccce2656
|
@ -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({});
|
||||
|
|
Loading…
Reference in New Issue