From d0ccce26567cee02c49466d62a78312d45529ee3 Mon Sep 17 00:00:00 2001 From: jgallego Date: Fri, 23 Aug 2024 10:32:36 +0200 Subject: [PATCH] feat: refs #7346 elimino === --- src/pages/InvoiceOut/InvoiceOutGlobalForm.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue b/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue index 3dc34dc15..362ede4be 100644 --- a/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue +++ b/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue @@ -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({});