summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/gradings.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/gradings.js b/js/gradings.js
index 1109961..0b8b53b 100644
--- a/js/gradings.js
+++ b/js/gradings.js
@@ -93,7 +93,7 @@ async function loadGradings(force_refresh = false) {
Promise.all(promises_to_run).then(() => {
- if (gradings === null || force_refresh) {
+ if (gradings === null || gradings === [] || gradings === -1 || force_refresh) {
$.ajax({
url: API_ENDPOINT,
crossDomain: true,