From d4da8fc69f9097b83095295be4d3c2aa9717a454 Mon Sep 17 00:00:00 2001 From: carlossa Date: Thu, 5 Sep 2024 12:48:31 +0200 Subject: [PATCH] fix branch --- src/components/ui/VnFilterPanel.vue | 7 +++---- src/pages/InvoiceOut/Card/InvoiceOutSummary.vue | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index 998211c39..931767516 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -204,10 +204,9 @@ function formatValue(value) { function sanitizer(params) { for (const [key, value] of Object.entries(params)) { - if (typeof value === 'object' && value !== null) { - sanitizer(value); - } else if (typeof value === 'string') { - params[key] = value.replaceAll('%', ''); + if (value && typeof value === 'object') { + const param = Object.values(value)[0]; + if (typeof param == 'string') params[key] = param.replaceAll('%', ''); } } return params; diff --git a/src/pages/InvoiceOut/Card/InvoiceOutSummary.vue b/src/pages/InvoiceOut/Card/InvoiceOutSummary.vue index 5db802065..e9d5a2f1f 100644 --- a/src/pages/InvoiceOut/Card/InvoiceOutSummary.vue +++ b/src/pages/InvoiceOut/Card/InvoiceOutSummary.vue @@ -176,7 +176,7 @@ const ticketsColumns = ref([ {{ value }} - +