Skip to content

Commit

Permalink
Fixed issue with reportMessage not present
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaymayekar committed Apr 16, 2024
1 parent 3216d0a commit d184024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d184024

Please sign in to comment.