Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-02-06 13:15:01 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-02-06 13:15:01 +0300
commit6cf29d5145bea39f731410e15472606223e0d7c0 (patch)
tree32976705680b3be12db72da468d9e01051d126e1 /web/html/xui/index.html
parent182710b86c3ded55b5e4a3c09bdccddd117246f2 (diff)
fix - Ensure logs are not null in show method #1763
Diffstat (limited to 'web/html/xui/index.html')
-rw-r--r--web/html/xui/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/xui/index.html b/web/html/xui/index.html
index 258d4154..a9391952 100644
--- a/web/html/xui/index.html
+++ b/web/html/xui/index.html
@@ -440,8 +440,8 @@
loading: false,
show(logs) {
this.visible = true;
- this.logs = logs;
- this.formattedLogs = logs.length > 0 ? this.formatLogs(logs) : "No Record...";
+ this.logs = logs || [];
+ this.formattedLogs = this.logs.length > 0 ? this.formatLogs(this.logs) : "No Record...";
},
formatLogs(logs) {
let formattedLogs = '';