From 4b1d1de969fe1ed5e0ff3eace35d9a1f0eb372e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20J=C3=A4ntsch?= Date: Wed, 3 Jun 2020 00:49:08 +0200 Subject: [PATCH] Update week.jsx --- src/jsx/ui/print_modi/week.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/jsx/ui/print_modi/week.jsx b/src/jsx/ui/print_modi/week.jsx index b34bb89..c4ccf2e 100644 --- a/src/jsx/ui/print_modi/week.jsx +++ b/src/jsx/ui/print_modi/week.jsx @@ -105,10 +105,15 @@ export class Modi_Week{ for(d in weeks[w].data){ - for(t in weeks[w].data[d][5]){ + for(t in weeks[w].data[d][5]) + { + if(typeof weeks[w].data[d][5][t] != "undefined") + { if(weeks[w].data[d][5][t].trim()===""){ weeks[w].data[d][5].splice(t,1); } + + } } if(weeks[w].data[d][5].length <=0){ weeks[w].data.splice(d,1);