From d0db8a098d9455173bf0979af1deeed814a5fe64 Mon Sep 17 00:00:00 2001 From: Pujit Mehrotra Date: Wed, 20 Nov 2024 09:38:33 -0500 Subject: [PATCH] fix(web): reset infinite scroll when notification filters change --- web/components/Notifications/List.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/components/Notifications/List.vue b/web/components/Notifications/List.vue index c877e57d5..128bbef7c 100644 --- a/web/components/Notifications/List.vue +++ b/web/components/Notifications/List.vue @@ -23,6 +23,10 @@ const props = withDefaults( /** whether we should load more notifications */ const canLoadMore = ref(true); +/** reset when props (e.g. props.type filter) change*/ +watch(props, () => { + canLoadMore.value = true; +}); const { result, error, fetchMore } = useQuery(getNotifications, () => ({ filter: {