diff --git a/web/html/xui/index.html b/web/html/xui/index.html
index 4fff2a2e..994c3c36 100644
--- a/web/html/xui/index.html
+++ b/web/html/xui/index.html
@@ -436,7 +436,7 @@
show(logs) {
this.visible = true;
this.logs = logs;
- this.formattedLogs = this.logs.length > 0 ? this.formatLogs(this.logs) : "No Record...";
+ this.formattedLogs = this.logs?.length > 0 ? this.formatLogs(this.logs) : "No Record...";
},
formatLogs(logs) {
let formattedLogs = '';