fix: sentry issues [CW-2222][CW-2232] (#7591)
This commit is contained in:
@@ -49,13 +49,20 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
const wrap = this.$refs.messageContainer;
|
||||
const message = wrap.querySelector('.message-content');
|
||||
this.isOverflowing = message.offsetHeight > 150;
|
||||
});
|
||||
this.$watch(() => {
|
||||
return this.$refs.messageContainer;
|
||||
}, this.setOverflow);
|
||||
|
||||
this.$nextTick(this.setOverflow);
|
||||
},
|
||||
methods: {
|
||||
setOverflow() {
|
||||
const wrap = this.$refs.messageContainer;
|
||||
if (wrap) {
|
||||
const message = wrap.querySelector('.message-content');
|
||||
this.isOverflowing = message.offsetHeight > 150;
|
||||
}
|
||||
},
|
||||
escapeHtml(html) {
|
||||
var text = document.createTextNode(html);
|
||||
var p = document.createElement('p');
|
||||
|
||||
@@ -242,7 +242,9 @@ export default {
|
||||
get() {
|
||||
const inboxList = this.contact.contactableInboxes || [];
|
||||
return (
|
||||
inboxList.find(inbox => inbox.inbox.id === this.targetInbox.id) || {
|
||||
inboxList.find(inbox => {
|
||||
return inbox.inbox?.id && inbox.inbox?.id === this.targetInbox?.id;
|
||||
}) || {
|
||||
inbox: {},
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user