From 3a2e7742e6aeaee8f35ba4e6119bf311abad85be Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Mon, 8 Jan 2024 16:19:20 +0100 Subject: [PATCH] Fix bug when filter is an empty array --- components/ServerDbTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ServerDbTable.vue b/components/ServerDbTable.vue index 0631f95e..d83b8c0b 100644 --- a/components/ServerDbTable.vue +++ b/components/ServerDbTable.vue @@ -144,7 +144,7 @@ const computedFilter = computed(() => { const toValFilters = toValue(msFilterCompo) let filtersStr: string | undefined = undefined - if (toValFilters !== undefined) { + if (toValFilters !== undefined && toValFilters.length > 0) { const tmpFilterItems = [...toValFilters] if (tmpFilterItems.length % 4 === 0) { tmpFilterItems.splice(-1) -- GitLab