From 6cf29d5145bea39f731410e15472606223e0d7c0 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 6 Feb 2024 13:45:01 +0330 Subject: fix - Ensure logs are not null in show method #1763 --- web/html/xui/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/html') 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 = ''; -- cgit v1.2.3