From 1854063f09f6b27f4a727759d7019f3b7ac7fb51 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 22 Dec 2022 11:01:46 +0100 Subject: [PATCH] Fix instances filter Closes #1214 Signed-off-by: Thomas Citharel --- js/src/views/Admin/InstancesView.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/src/views/Admin/InstancesView.vue b/js/src/views/Admin/InstancesView.vue index 529fc0f7d..224216cb2 100644 --- a/js/src/views/Admin/InstancesView.vue +++ b/js/src/views/Admin/InstancesView.vue @@ -221,8 +221,9 @@ const newRelayAddress = ref(""); // relayFollowers: Paginate = { elements: [], total: 0 }; -const updateDomainFilter = (domain: string) => { - filterDomain.value = domain; +const updateDomainFilter = (event: InputEvent) => { + const newValue = (event.target as HTMLInputElement).value; + filterDomain.value = newValue; }; const debouncedUpdateDomainFilter = debounce(updateDomainFilter, 500);