Skip to content

Commit

Permalink
check pause before requery
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Sep 2, 2022
1 parent b379b8c commit aac5c1f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Exception.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -57,6 +59,7 @@ export default defineComponent({
return {
exception,
alert,
pause,
};
},
});
Expand Down

0 comments on commit aac5c1f

Please sign in to comment.