diff --git a/components/character-fictionality.vue b/components/character-fictionality.vue index c2cf84d..24f895f 100644 --- a/components/character-fictionality.vue +++ b/components/character-fictionality.vue @@ -7,8 +7,6 @@ const props = defineProps<{ isTablet: boolean; }>(); -console.log(props.isMobile, props.isTablet); - type Icon = typeof UserRoundIcon; const characterIcons: Record = { diff --git a/components/search-filter.vue b/components/search-filter.vue index 725a8a6..8e5484d 100644 --- a/components/search-filter.vue +++ b/components/search-filter.vue @@ -79,6 +79,7 @@ const checkedFacets = computed(() => { const props = defineProps<{ facets: SearchResultFacets | null; + filterCount: number; }>(); const showMore = ref(false); @@ -102,13 +103,10 @@ const sortedTopics = computed(() => { }); const selectedCheckboxes = ref>([]); -const filterCount = ref(0); watch( checkedFacets, - ({ language, topic }) => { - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - filterCount.value = (language?.length || 0) + (topic?.length || 0); + () => { selectedCheckboxes.value = []; }, { immediate: true }, @@ -182,9 +180,9 @@ function updateSelectedCheckboxes(label: string, isChecked: boolean) {
Filterung
- Aktive Filter ({{ filterCount }}) + Aktive Filter ({{ props.filterCount }})