fix(filters): do not watch debounced

This commit is contained in:
kolaente 2024-03-14 08:40:03 +01:00
parent 3ab22d8e06
commit 161bb1b192
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 4 deletions

View File

@ -48,8 +48,7 @@ export const ALPHABETICAL_SORT = 'title'
</script>
<script setup lang="ts">
import {computed, ref} from 'vue'
import {watchDebounced} from '@vueuse/core'
import {computed, ref, watch} from 'vue'
import Fancycheckbox from '@/components/input/fancycheckbox.vue'
import FilterInput from '@/components/project/partials/FilterInput.vue'
import {useRoute} from 'vue-router'
@ -89,7 +88,7 @@ const params = ref<TaskFilterParams>({
})
// Using watchDebounced to prevent the filter re-triggering itself.
watchDebounced(
watch(
() => modelValue,
(value: TaskFilterParams) => {
const val = {...value}
@ -100,7 +99,7 @@ watchDebounced(
)
params.value = val
},
{immediate: true, debounce: 500, maxWait: 1000},
{immediate: true},
)
const labelStore = useLabelStore()