From aac5c1f19e097fa771d421551429090d5cb92bb1 Mon Sep 17 00:00:00 2001 From: Tai Sakuma Date: Fri, 2 Sep 2022 14:23:12 -0400 Subject: [PATCH] check pause before requery --- src/components/Exception.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Exception.vue b/src/components/Exception.vue index 5652cf7..1199db7 100644 --- a/src/components/Exception.vue +++ b/src/components/Exception.vue @@ -28,12 +28,14 @@ export default defineComponent({ const query = useQuery<{ exception: string }>({ query: QUERY_EXCEPTION, - pause, + pause: pause.value, }); watch(subscription.data, (val) => { pause.value = val?.state !== "finished"; - query.executeQuery(); + if (!pause.value) { + query.executeQuery(); + } }); const exception = ref(null as string | null | undefined); @@ -57,6 +59,7 @@ export default defineComponent({ return { exception, alert, + pause, }; }, });