hmt 6 năm trước cách đây
mục cha
commit
836d8f5eaf
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Fotoliste.html

+ 2 - 2
Fotoliste.html

@@ -6,9 +6,9 @@
         <h5>{slice[0].Klasse}</h5>
         Stand: {datum(new Date())}
         <div class="grid">
-          {#each slice as s,i}
+          {#each slice as s}
             <div>
-              <img src="data:image/jpg;base64,{buffer(s.schuelerfoto.Foto)}" alt="Foto" style="width: 120px">
+              <img src="data:image/jpg;base64,{s && buffer(s.schuelerfoto.Foto)}" alt="Foto" style="width: 120px">
               <br>
               {s.Name}, {s.Vorname}
             </div>