fix - Ensure logs are not null in show method #1763

This commit is contained in:
MHSanaei
2024-02-06 13:45:01 +03:30
parent 182710b86c
commit 6cf29d5145
2 changed files with 5 additions and 5 deletions

View File

@@ -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 = '';