From 9616badc33173483e0b5cc0c99655e0c9a4907f9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 5 Sep 2022 15:47:18 +0200 Subject: [PATCH] fix: don't push a select event when nothing was selected --- src/components/tasks/partials/listSearch.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/tasks/partials/listSearch.vue b/src/components/tasks/partials/listSearch.vue index ccfedd79..2b48f716 100644 --- a/src/components/tasks/partials/listSearch.vue +++ b/src/components/tasks/partials/listSearch.vue @@ -55,6 +55,9 @@ function findLists(query: string) { } function select(l: IList | null) { + if (l === null) { + return + } Object.assign(list, l) emit('update:modelValue', list) }