From d184024ff0aa7927c555778be69af62bee1b8164 Mon Sep 17 00:00:00 2001 From: Akshay Mayekar Date: Tue, 16 Apr 2024 13:23:00 +0530 Subject: [PATCH] Fixed issue with reportMessage not present --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 13b2f9b..9c50ceb 100644 --- a/src/main.js +++ b/src/main.js @@ -378,7 +378,7 @@ export default { updateReportIcon() { const incomingMessages = document.querySelectorAll(".message.incoming"); - if (this.reportMessage.reportType === "ONLY_LAST_MESSAGE") { + if (this.reportMessage && this.reportMessage.reportType === "ONLY_LAST_MESSAGE") { incomingMessages.forEach((message, index) => { const reportIcon = message.querySelector(".report-icon"); if (index !== incomingMessages.length - 1 && !!reportIcon) {