diff --git a/front/components/Content/DsoBrowser.vue b/front/components/Content/DsoBrowser.vue index 89f61cf..a8b3b9d 100644 --- a/front/components/Content/DsoBrowser.vue +++ b/front/components/Content/DsoBrowser.vue @@ -212,13 +212,13 @@ const dsoGeoJson = computed(() => geoJsonDso(listDso)) */ const filtersBy = computed(() => { return Object.keys(response?.value?.filters || {}) - .reduce<{[type: string ]: Filters[] }>((acc, key: string) => { + .reduce<{[type: string ]: Filters[] }>((acc, key) => { if (key !== defaultFilterName.value) { acc[key] = response?.value?.filters![key] } return acc; - }, { } as any) + }, { }) }); /** diff --git a/front/types/index.d.ts b/front/types/index.d.ts index 01f8ce4..2ee5601 100644 --- a/front/types/index.d.ts +++ b/front/types/index.d.ts @@ -106,10 +106,10 @@ declare global { label: string } interface Filters { - constellation: ValueFilter[], - catalog: ValueFilter[], - magnitude: ValueFilter[], - type: ValueFilter[] + constellation: {[type: string ]: ValueFilter[]}, + catalog: {[type: string ]: ValueFilter[]}, + magnitude: {[type: string ]: ValueFilter[]}, + type: {[type: string ]: ValueFilter[]} } interface BrowserResponse {