diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-10-19 17:56:05 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-10-19 17:56:05 +1100 |
| commit | 4f56fa40db652f5f7b3e42f5a1a4905c0b3787ea (patch) | |
| tree | ba9b12741e92849e52731add933ecdafe9b79cf8 /src/App.vue | |
| parent | 9fa58dda8a0f35437b76bc2039f5e96dfe21c099 (diff) | |
Fix bug where pendingReq wasn't always reset
Diffstat (limited to 'src/App.vue')
| -rw-r--r-- | src/App.vue | 2 |
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 |
