summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/absences.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/absences.js b/js/absences.js
index 0540f1f..a3d33cd 100644
--- a/js/absences.js
+++ b/js/absences.js
@@ -67,6 +67,10 @@ async function loadAbsences(force_refresh = false) {
});
value.length = tillKey+1; // tillKey in
value.splice(0, fromKey); // fromKey hočemo obdržati
+ if(tillKey == 0 && fromKey == -1) {
+ // očitno je karantena in ni nobenih izostnakov
+ value.length = 0;
+ }
absences = value;
localforage.setItem("absences", value).then((value) => {
displayData();