diff options
author | rstular <rok@stular.eu> | 2020-05-17 15:12:58 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-17 15:12:58 +0200 |
commit | 89f33d6754e6e619e81d2839d68e5b34e85fdff8 (patch) | |
tree | 1524834e3bea51f161c8a232f4a81172abf930ec /assets/js/teachers.js | |
parent | GSEC bug fix - fetch teachers (diff) | |
download | beziapp-89f33d6754e6e619e81d2839d68e5b34e85fdff8.tar beziapp-89f33d6754e6e619e81d2839d68e5b34e85fdff8.tar.gz beziapp-89f33d6754e6e619e81d2839d68e5b34e85fdff8.tar.bz2 beziapp-89f33d6754e6e619e81d2839d68e5b34e85fdff8.tar.lz beziapp-89f33d6754e6e619e81d2839d68e5b34e85fdff8.tar.xz beziapp-89f33d6754e6e619e81d2839d68e5b34e85fdff8.tar.zst beziapp-89f33d6754e6e619e81d2839d68e5b34e85fdff8.zip |
Diffstat (limited to '')
-rw-r--r-- | assets/js/teachers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/teachers.js b/assets/js/teachers.js index 5fc2baf..da69e96 100644 --- a/assets/js/teachers.js +++ b/assets/js/teachers.js @@ -29,7 +29,7 @@ async function loadTeachers(force_refresh = false) { ]; await Promise.all(promises_to_run); // If we don't have a list of teachers, query it - if (teachers === null || force_refresh) { + if (teachers === null || teachers === [] || force_refresh) { try { let gsecInstance = new gsec(); await gsecInstance.login(username, password); |