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);