From 4f56fa40db652f5f7b3e42f5a1a4905c0b3787ea Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Wed, 19 Oct 2022 17:56:05 +1100 Subject: Fix bug where pendingReq wasn't always reset --- src/App.vue | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/App.vue') diff --git a/src/App.vue b/src/App.vue index 28f6fea..84ad16b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -200,6 +200,7 @@ async function onEventReq(startDate: HistDate, endDate: HistDate){ pendingReq = true; // Exclude exhausted range if (isExhaustedRange(startDate, endDate)){ + pendingReq = false; return; } // Get existing events in range @@ -222,6 +223,7 @@ async function onEventReq(startDate: HistDate, endDate: HistDate){ }); let responseObj: HistEventJson[] = await queryServer(urlParams); if (responseObj == null){ + pendingReq = false; return; } // Add to map -- cgit v1.2.3