summaryrefslogtreecommitdiffstats
path: root/assets/js/absences.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/absences.js')
-rw-r--r--assets/js/absences.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/absences.js b/assets/js/absences.js
index a11d042..2ed5fe8 100644
--- a/assets/js/absences.js
+++ b/assets/js/absences.js
@@ -49,7 +49,7 @@ async function loadAbsences(forceRefresh = false) {
];
await Promise.all(promisesToRun);
// If we don't have a list of absences, query it
- if (absences === null || forceRefresh) {
+ if (absences === null || absences === {} || forceRefresh) {
try {
let gsecInstance = new gsec();
await gsecInstance.login(username, password);