Selaa lähdekoodia

Fixed samba bug

aroz 1 vuosi sitten
vanhempi
commit
5f16ac10c7
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      web/SystemAO/disk/samba.html

+ 4 - 1
web/SystemAO/disk/samba.html

@@ -191,7 +191,10 @@
 
             // Populate the table rows
             data.forEach(item => {
-                let userListHex = encodeURIComponent(JSON.stringify(item.ValidUsers));
+                let userListHex = encodeURIComponent(JSON.stringify([]));
+                if (item.ValidUsers != null){
+                    userListHex = encodeURIComponent(JSON.stringify(item.ValidUsers));
+                }
                 table += `
                     <tr>
                         <td>${item.Name}</td>