aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-10-19 17:56:05 +1100
committerTerry Truong <terry06890@gmail.com>2022-10-19 17:56:05 +1100
commit4f56fa40db652f5f7b3e42f5a1a4905c0b3787ea (patch)
treeba9b12741e92849e52731add933ecdafe9b79cf8
parent9fa58dda8a0f35437b76bc2039f5e96dfe21c099 (diff)
Fix bug where pendingReq wasn't always reset
-rw-r--r--src/App.vue2
1 files changed, 2 insertions, 0 deletions
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