Browse Source

auto update script executed

Toby Chui 2 years ago
parent
commit
9dd9e5b8c8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web/components/status.html

+ 2 - 2
web/components/status.html

@@ -207,7 +207,7 @@
                 </tr>`);
             }
 
-            if (data.length == 0){
+            if (Object.keys(data).length == 0){
                 $("#countryCodetable").append(`<tr>
                     <td colspan="2">No Data</td>
                 </tr>`);
@@ -244,7 +244,7 @@
                 </tr>`);
             }
 
-            if (data.length == 0){
+            if (Object.keys(data).length == 0){
                 $("#forwardTypeTable").append(`<tr>
                     <td colspan="2">No Data</td>
                 </tr>`);