diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-06 13:15:01 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-06 13:15:01 +0300 |
| commit | 6cf29d5145bea39f731410e15472606223e0d7c0 (patch) | |
| tree | 32976705680b3be12db72da468d9e01051d126e1 /web/html/xui | |
| parent | 182710b86c3ded55b5e4a3c09bdccddd117246f2 (diff) | |
fix - Ensure logs are not null in show method #1763
Diffstat (limited to 'web/html/xui')
| -rw-r--r-- | web/html/xui/index.html | 4 |
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 = ''; |
