Skip to content
Snippets Groups Projects
Commit 3a2e7742 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Fix bug when filter is an empty array

parent 9ae4d755
No related branches found
No related tags found
2 merge requests!203Foldseek pages,!186Refactor facet autocomplete
Pipeline #120181 passed with warnings with stages
in 6 minutes and 57 seconds
This commit is part of merge request !186. Comments created here will be created in the context of that merge request.
...@@ -144,7 +144,7 @@ const computedFilter = computed(() => { ...@@ -144,7 +144,7 @@ const computedFilter = computed(() => {
const toValFilters = toValue(msFilterCompo) const toValFilters = toValue(msFilterCompo)
let filtersStr: string | undefined = undefined let filtersStr: string | undefined = undefined
if (toValFilters !== undefined) { if (toValFilters !== undefined && toValFilters.length > 0) {
const tmpFilterItems = [...toValFilters] const tmpFilterItems = [...toValFilters]
if (tmpFilterItems.length % 4 === 0) { if (tmpFilterItems.length % 4 === 0) {
tmpFilterItems.splice(-1) tmpFilterItems.splice(-1)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment